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: "Peer Sandtner" Received: from www273.your-server.de ([188.40.28.173] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 25760106 for webobjects-dev@wocommunity.org; Thu, 22 Apr 2021 09:16:32 +0200 Received-SPF: none receiver=post.selbstdenker.com; client-ip=188.40.28.173; envelope-from=peer@peersandtner.de Received: from sslproxy06.your-server.de ([78.46.172.3]) by www273.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lZTZM-000F1R-9Z for webobjects-dev@wocommunity.org; Thu, 22 Apr 2021 09:16:12 +0200 Received: from [95.116.8.140] (helo=aloha.fritz.box) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1lZTZM-0000eD-3S for webobjects-dev@wocommunity.org; Thu, 22 Apr 2021 09:16:12 +0200 Content-Type: multipart/alternative; boundary="Apple-Mail=_FE3A82CB-A6E2-40CE-8A6F-0FB0CF299D71" 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 09:16:11 +0200 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: <1FA033C1-F75C-40EE-9BB0-1D179CDF2C44@peersandtner.de> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Authenticated-Sender: peer@peersandtner.de X-Virus-Scanned: Clear (ClamAV 0.102.4/26147/Wed Apr 21 13:06:05 2021) --Apple-Mail=_FE3A82CB-A6E2-40CE-8A6F-0FB0CF299D71 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I'm glad to hear that. :-)=20 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 = : >=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 --Apple-Mail=_FE3A82CB-A6E2-40CE-8A6F-0FB0CF299D71 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
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=_FE3A82CB-A6E2-40CE-8A6F-0FB0CF299D71--