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-qufo17281801.me.com ([17.58.38.55] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 25759998 for webobjects-dev@wocommunity.org; Thu, 22 Apr 2021 08:49:52 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=17.58.38.55; envelope-from=jens.schulze@icloud.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1619074171; bh=Y4UVZDG2qFKxgqceji6jM7qQ2dsprstnFGXUPvQLEaU=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=GKCTrBOA0FhSbghZEMqGV/8cPtEG/fVfI1OyFOVzcdcZoAlFRZsO6Q70TOJ0A4Xhr FJyMdmscOprEWJYCL8MVBL77LNye5x1vI6BDQa0GJgMYyGE+7kF+goHturF+jZ4ogc +DEm6ZXnLLEK9px7GhUKKWcD9uzsY2QEBQkVTBHguR+tifXj2QzR7hSNk1Oo8PzSBS EJ/M7Ilcqcotdg9fpS56c9EatZzG4RAFvxWTkSEeMoREWREh3N3ELpPPT0NI48neM3 P7qguqCBvHNbrW6iOXPOHUT4KBDff1B5yxhyP56XLolLSDQJVvSd1Muc65gG7+a4pW Yz+89/3Sng42g== Received: from [192.168.1.135] (p549e52bc.dip0.t-ipconnect.de [84.158.82.188]) by ms11p00im-qufo17281801.me.com (Postfix) with ESMTPSA id 6991410018B for ; Thu, 22 Apr 2021 06:49:30 +0000 (UTC) Content-Type: multipart/alternative; boundary="Apple-Mail=_CCAB4825-9747-4705-B00D-E6A426114A7F" 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 08:49:27 +0200 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: <6476753D-ABEF-4250-B1B3-A2495DC983A4@icloud.com> 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-21=5F08:2021-04-21=5F04,2021-04-21=5F08,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 phishscore=0 mlxscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2104220058 --Apple-Mail=_CCAB4825-9747-4705-B00D-E6A426114A7F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 = : >=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 --Apple-Mail=_CCAB4825-9747-4705-B00D-E6A426114A7F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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=_CCAB4825-9747-4705-B00D-E6A426114A7F--