X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] From: "Jens Schulze" Received: from ms11p00im-qufo17292001.me.com ([17.58.38.49] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 25760433 for webobjects-dev@wocommunity.org; Thu, 22 Apr 2021 10:15:16 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=17.58.38.49; envelope-from=jens.schulze@icloud.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1619079290; bh=A6M0kSeEibv+t1n3Xbv556OgsYezehZMNOtgwL31+OQ=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=aq1SwHGpMBKyB+1is1m5TlT+qXo5xf9DaHUVPJ38kOf4rl6ufFHApmFQvj0mq+WLB fyl+4ZER2EVNFCHaR51pGUFQyD3RhRzw8M+xdESUIu+XrAw8Bgis6Xp6SrK1n1xeT9 tfGjZQYG44PPq+V9TY+ctzMTMykyMA+BoqVC1Gp+f/QnGeMIGeayXpyuJdNaZDlijw QsxLv5Qeg1KHK31/0OxCzdsVzTF80WzWbr8tSKAPHyJtWCkPuPv5I8PmxCO/fH5vND wTUheyb7dYthSQvXDdPb94gIbBHdT1GKxbMXofH6eXIgviSwkfpdzJ/D6WtjoGyEhE Llu7d61lN+3YA== Received: from [192.168.1.135] (p549e52bc.dip0.t-ipconnect.de [84.158.82.188]) by ms11p00im-qufo17292001.me.com (Postfix) with ESMTPSA id 6826E140387 for ; Thu, 22 Apr 2021 08:14:49 +0000 (UTC) Content-Type: multipart/alternative; boundary="Apple-Mail=_EB81A9AE-1438-45D1-B6FB-6AF46DF59D7D" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: [WO-DEV] ERPDFGeneration ... fails with German "umlaute" Date: Thu, 22 Apr 2021 10:14:47 +0200 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.391,18.0.761,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-04-22=5F01:2021-04-21=5F03,2021-04-22=5F01,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 clxscore=1015 suspectscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2104220069 --Apple-Mail=_EB81A9AE-1438-45D1-B6FB-6AF46DF59D7D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Yes! I Agree I did that =E2=80=9Ecreated a Pull request=E2=80=9C ! Jens > Am 22.04.2021 um 09:16 schrieb Peer Sandtner = : >=20 > I'm glad to hear that. :-)=20 >=20 > BTW: I think it would make sense to add this very important property = to the Wonder sample applications. >=20 > Peer >=20 >=20 >=20 >> Am 22.04.2021 um 08:49 schrieb Jens Schulze = >: >>=20 >> Peer Thanks you so much !! >>=20 >> Properties are for my like dark art because there are many but to = find them one has to look at the sources. >>=20 >> In any case this solved a long standing problem for! >>=20 >> So again Thank you! >>=20 >> Jens >>=20 >>> Am 21.04.2021 um 23:08 schrieb Peer Sandtner = >: >>>=20 >>> Hello Jens, >>>=20 >>> by setting the following property it will work correctly: >>>=20 >>> er.extensions.ERXApplication.DefaultEncoding=3DUTF-8 >>>=20 >>> regards und sch=C3=B6nen Gru=C3=9F >>> Peer >>>=20 >>>=20 >>>=20 >>>> Am 21.04.2021 um 19:26 schrieb Jens Schulze = >: >>>>=20 >>>> Hello List! >>>>=20 >>>> I need help! I want to convert a html Page with German characters = to PDF following the =E2=80=9EERPDFExamples=E2=80=9C.=20 >>>>=20 >>>> As soon as I put a German character in the page the conversion = fails: >>>>=20 >>>> Any help hints are really appreciated! >>>>=20 >>>> Thanks >>>> Jens Schulze >>>> ____________________________________________________________ >>>> Prof. Dr. Jens Schulze >>>> Marketing & Vertrieb >>>> M=C3=BCnsterstrasse 265 www.profjens.de = >>>> 46397 Bocholt jens.schulze@me.com = >>>> 02871-2155 864 jens.schulze@w-hs.de.de = >>>> ____________________________________________________________ >>>>=20 >>>> Caused by: = org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 2 = of 4-byte UTF-8 sequence. >>>> .. >>>> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(null:Unknown) >>>> at = javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122) >>>> at = er.pdf.builder.FlyingSaucerImpl.setSource(FlyingSaucerImpl.java:100) >>>> at er.pdf.ERPDFUtilities.htmlAsPdf(ERPDFUtilities.java:130) >>>> at er.pdf.ERPDFWrapper.responseAsPdf(ERPDFWrapper.java:89) >>>>=20 >>>> HTML >>>> >>>> "> >>>> >>>>=20 >>>> >>>> >>>>=20 >>>> ERPDFGeneration Examples >>>>=20 >>>> >>>> >>>>=20 >>>> Test =C3=B6=C3=A4 ä >>>>=20 >>>> >>>> >>>> >>>>=20 >>>> BUNDLES >>>> "CurrentPage" =3D = "er.pdfexamples.components.SimplePDFGeneration1"; >>>> "Bundles" =3D { >>>> "ERExtensions" =3D "7.1-SNAPSHOT"; >>>> "JavaWebObjects" =3D "5.4.3"; >>>> "ERPDFExamples" =3D ""; >>>> "ERJars" =3D "7.0"; >>>> "JavaXML" =3D "5.4.2"; >>>> "JavaJDBCAdaptor" =3D "5.4.3"; >>>> "WOOgnl" =3D "7.0"; >>>> "JavaEOAccess" =3D "5.4.3"; >>>> "JavaEOControl" =3D "5.4.2"; >>>> "JavaFoundation" =3D "5.4.3"; >>>> "JavaWOExtensions" =3D "7.0"; >>>> "ERPDFGeneration" =3D "7.0"; >>>> "ERPrototypes" =3D "7.0=E2=80=9C; >>>>=20 >>>> Markus wrote it works with an older version of WONDER (which = version?) >>>>=20 >>>> I even tried to do everything with MAVEN hoping it would solve = dependency issues but there again I ran into problems. >>>>=20 >>>> git clone git://github.com/wocommunity/wonder.git = WonderSource >>>>=20 >>>> cd WonderSource/ >>>>=20 >>>> mvn validate -e -X >>>>=20 >>>> [WARNING] The POM for org.objectstyle.cayenne:cayenne:jar:1.2M12 is = missing, no dependency information available >>>> [ERROR] [ERROR] Some problems were encountered while processing the = POMs: >>>> [WARNING] 'build.plugins.plugin.version' for = org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 132, = column 21 >>>> [ERROR] Unresolveable build extension: Plugin = org.wocommunity:wolifecycle-maven-plugin:2.3 or one of its dependencies = could not be resolved: Failed to collect dependencies at = org.wocommunity:wolifecycle-maven-plugin:jar:2.3 -> = org.objectstyle.woproject.ant:woproject-ant-tasks:jar:2.0.15 -> = ant:ant-junit:jar:1.6.5 @=20 >>>> @=20 >>>> [ERROR] The build could not read 1 project -> [Help 1] >>>> org.apache.maven.project.ProjectBuildingException: Some problems = were encountered while processing the POMs: >>>> [WARNING] 'build.plugins.plugin.version' for = org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 132, = column 21 >>>> [ERROR] Unresolveable build extension: Plugin = org.wocommunity:wolifecycle-maven-plugin:2.3 or one of its dependencies = could not be resolved: Failed to collect dependencies at = org.wocommunity:wolifecycle-maven-plugin:jar:2.3 -> = org.objectstyle.woproject.ant:woproject-ant-tasks:jar:2.0.15 -> = ant:ant-junit:jar:1.6.5 @=20 >>>>=20 >>>>=20 >>>>=20 >>>=20 >>=20 >=20 --Apple-Mail=_EB81A9AE-1438-45D1-B6FB-6AF46DF59D7D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Yes!

I Agree I = did that =E2=80=9Ecreated a Pull request=E2=80=9C !

Jens

Am 22.04.2021 um 09:16 schrieb Peer Sandtner <webobjects-dev@wocommunity.org>:

I'm = glad to hear that. :-) 

BTW: I think it would make sense to add = this very important property to the Wonder sample = applications.

Peer



Am 22.04.2021 um 08:49 schrieb = Jens Schulze <webobjects-dev@wocommunity.org>:

Peer Thanks you so = much !!

Properties = are for my like dark art because there are many but to find them one has = to look at the sources.

In any case this solved a long standing problem = for!

So again = Thank you!

Jens

Am 21.04.2021 um 23:08 schrieb = Peer Sandtner <webobjects-dev@wocommunity.org>:

Hello Jens,

by = setting the following property it will work correctly:

er.extensions.ERXApplication.DefaultEncoding=3DUTF-8

regards und = sch=C3=B6nen Gru=C3=9F
Peer



Am 21.04.2021 um 19:26 schrieb Jens Schulze <webobjects-dev@wocommunity.org>:

Hello List!

I need help! I want to = convert a html Page with German characters to PDF following the = =E2=80=9EERPDFExamples=E2=80=9C. 

As soon as I put a German character in = the page the conversion fails:

Any help hints are really = appreciated!

Thanks
Jens Schulze
____________________________________________________________
Prof. Dr. Jens = Schulze
Marketing & Vertrieb
M=C3=BCnsterstrasse 265 www.profjens.de
46397 Bocholt jens.schulze@me.com
02871-2155 864 = jens.schulze@w-hs.de.de
________________________________________________________= ____

Caused by: = org.apache.xerces.impl.io.MalformedByteSequenceException= : Invalid byte 2 of 4-byte UTF-8 = sequence.
..
  at = org.apache.xerces.jaxp.DocumentBuilderImpl.parse(null:Unknown)
  at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
  at = er.pdf.builder.FlyingSaucerImpl.setSource(FlyingSaucerImpl.java:100)
  at er.pdf.ERPDFUtilities.htmlAsPdf(ERPDFUtilities.java:130)
  at = er.pdf.ERPDFWrapper.responseAsPdf(ERPDFWrapper.java:89)

HTML
<?xml version=3D"1.0" = encoding=3D"UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 = Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">= ;
<wo:ERPDFWrapper  = enabled =3D "yes" filename =3D= "SimplePDFGenerationExample1.pdf" = >

<html lang =3D= "de-DE">
  <head>

    <title>ERPDFGeneration Examples</title>

  </head>
  = <body>

Test = =C3=B6=C3=A4 &auml;

</body>
</html>
</wo:ERPDFWrapper>

BUNDLES
"CurrentPage" =3D = "er.pdfexamples.components.SimplePDFGeneration1";
= "Bundles" =3D {
= "ERExtensions" =3D "7.1-SNAPSHOT";
= "JavaWebObjects" =3D "5.4.3";
= "ERPDFExamples" =3D "";
= "ERJars" =3D "7.0";
"JavaXML" =3D = "5.4.2";
"JavaJDBCAdaptor" =3D = "5.4.3";
"WOOgnl" =3D = "7.0";
"JavaEOAccess" =3D = "5.4.3";
"JavaEOControl" =3D = "5.4.2";
"JavaFoundation" =3D = "5.4.3";
"JavaWOExtensions" =3D = "7.0";
"ERPDFGeneration" =3D = "7.0";
"ERPrototypes" =3D = "7.0=E2=80=9C;

Markus wrote it works with an older version of WONDER (which = version?)

I even tried to do everything with MAVEN hoping it would = solve dependency issues but there again I ran into problems.


cd WonderSource/

mvn validate -e -X

[WARNING] The POM for = org.objectstyle.cayenne:cayenne:jar:1.2M12 is missing, no dependency = information available
[ERROR] [ERROR] Some problems were encountered = while processing the POMs:
[WARNING]= 'build.plugins.plugin.version' for = org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 132, = column 21
[ERROR] Unresolveable build extension: = Plugin org.wocommunity:wolifecycle-maven-plugin:2.3 or one of its = dependencies could not be resolved: Failed to collect dependencies at = org.wocommunity:wolifecycle-maven-plugin:jar:2.3 -> = org.objectstyle.woproject.ant:woproject-ant-tasks:jar:2.0.15 -> = ant:ant-junit:jar:1.6.5 @ 
 @ 
[ERROR] The build could not read 1 project = -> [Help 1]
org.apache.maven.project.ProjectBuildingException: = Some problems were encountered while processing = the POMs:
[WARNING] 'build.plugins.plugin.version' for = org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 132, = column 21
[ERROR] Unresolveable build extension: Plugin = org.wocommunity:wolifecycle-maven-plugin:2.3 or one of its dependencies = could not be resolved: Failed to collect dependencies at = org.wocommunity:wolifecycle-maven-plugin:jar:2.3 -> = org.objectstyle.woproject.ant:woproject-ant-tasks:jar:2.0.15 -> = ant:ant-junit:jar:1.6.5 @ 



<= br class=3D"">



= --Apple-Mail=_EB81A9AE-1438-45D1-B6FB-6AF46DF59D7D--