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: "Steve Peery" Received: from st43p00im-zteg10062001.me.com ([17.58.63.166] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 25756975 for webobjects-dev@wocommunity.org; Wed, 21 Apr 2021 20:14:53 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=17.58.63.166; envelope-from=speery@me.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1619028872; bh=zhnQjqW7hspUp9kHkiVkZHdjR6ncnKn7p+mpqc7Igx0=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=Q7Ubsap1qt5YCRdAueqHFOPe0xp2n6x0ArzUylRg8ygPKHu0WVmPo/3Y39OFSKTYE J/j91DJFWegNynwFqCFwhE50FxCALtU4Ca01h+/vbuC5j30LQv66Qr1ktjlyZkCJPH fUCkzl+3prMJkFZCjZy2EreR3delCSRTRdLVZConu7DWGTWr27oj16xWVp+gWioyWv 0bFFNePoeMZbb1PuBW5yrwpqQJ8c8XbR7F6DyIfoCSiUJNNT14H1Sna0+6ZXSRdJAx 5P6yLnXn956CWxKDFUopYlfAT+vu9TlIpH2sRTpnyStI8Hxdi7mwaSF4oEaNJc80HI wMvPI+kjEMHGw== Received: from [192.168.4.28] (pppoe-209-99-199-96.greenmountainaccess.net [209.99.199.96]) by st43p00im-zteg10062001.me.com (Postfix) with ESMTPSA id 16DCF6C0F36 for ; Wed, 21 Apr 2021 18:14:31 +0000 (UTC) Content-Type: multipart/alternative; boundary="Apple-Mail=_023335B5-2109-44DE-BC9F-68AAD3AC8599" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: [WO-DEV] Re: ERPDFGeneration ... fails with German "umlaute" Date: Wed, 21 Apr 2021 14:14:30 -0400 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: <6FDE53EF-FEEE-4446-B831-53F4D45FB3ED@me.com> X-Mailer: Apple Mail (2.3445.9.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-21_05:2021-04-21,2021-04-21 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2104210127 --Apple-Mail=_023335B5-2109-44DE-BC9F-68AAD3AC8599 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Try using the form with an ampersand, followed by a number sign, a = number, and a semicolon. So for a latin small letter a with diaeresis (=C3=A4) use ä instead = of ä=20 = https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_refere= nces#Character_entity_references_in_HTML - Steve > On Apr 21, 2021, at 1:39 PM, Jesse Tayler = wrote: >=20 > Well, something isn=E2=80=99t UTF-8=E2=80=A6apache reports invalid = bytes and expectation of UTF-8, so maybe your app needs to explicitly = have headers or settings - I do not know but I noticed the error and = thought it might be, since if you had UTF-8 all the way, I=E2=80=99m = sure you=E2=80=99d not see that error >=20 >> On Apr 21, 2021, at 1:26 PM, Jens Schulze = > = wrote: >>=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=_023335B5-2109-44DE-BC9F-68AAD3AC8599 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Try using the form with an ampersand, followed by a number = sign, a number, and a semicolon.

So for a latin small letter a with = diaeresis (=C3=A4) use &#228; instead of &auml; 


- Steve

On Apr = 21, 2021, at 1:39 PM, Jesse Tayler <webobjects-dev@wocommunity.org> wrote:

Well, something = isn=E2=80=99t UTF-8=E2=80=A6apache reports invalid bytes and expectation = of UTF-8, so maybe your app needs to explicitly have headers or settings = - I do not know but I noticed the error and thought it might be, since = if you had UTF-8 all the way, I=E2=80=99m sure you=E2=80=99d not see = that error

On Apr 21, 2021, at 1:26 PM, = Jens Schulze <webobjects-dev@wocommunity.org> wrote:

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=_023335B5-2109-44DE-BC9F-68AAD3AC8599--