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: "Ray Kiddy" Received: from p3plsmtpa11-09.prod.phx3.secureserver.net ([68.178.252.110] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 25763606 for webobjects-dev@wocommunity.org; Thu, 22 Apr 2021 19:25:43 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=68.178.252.110; envelope-from=ray@ganymede.org Received: from rrk.local ([73.189.157.212]) by :SMTPAUTH: with ESMTPSA id Zd4plSxtk0AzCZd4qlpS1M; Thu, 22 Apr 2021 10:25:20 -0700 X-CMAE-Analysis: v=2.4 cv=csleL30i c=1 sm=1 tr=0 ts=6081b181 a=0CXL/RnSyQIzAg9GrPy4sg==:117 a=0CXL/RnSyQIzAg9GrPy4sg==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=DSLKI1hMAAAA:8 a=-cLOJFAUAAAA:8 a=HHGDD-5mAAAA:8 a=SSmOFEACAAAA:8 a=P26JGPb5AAAA:20 a=A-fjoEkDCdetCoBguZAA:9 a=QEXdDO2ut3YA:10 a=AKOrGf1AAAAA:8 a=OafOcvRr6khFtOSbp80A:9 a=k6H4uZa-CNlmvS1k:21 a=_W_S_7VecoQA:10 a=n3vzDv7lIDZ8GvaX0y2W:22 a=wBfvVliiLWkUYg1_-t8N:22 a=loDBPfUFmjjZXorEWf8I:22 X-SECURESERVER-ACCT: ray@ganymede.org Subject: Re: [WO-DEV] Re: ERPDFGeneration ... fails with German "umlaute" To: WebObjects & WOnder Development References: Message-ID: Date: Thu, 22 Apr 2021 10:25:19 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------3FDFDFD3121386F95EC1C702" Content-Language: en-GB X-CMAE-Envelope: MS4xfHe9b5GmXKtf8Gw/XKxu8TKgVFrOTNrUeslKKWMUZ3pNK4+5stIrnHmI7JsR/OrEBwIOcUfrOPxQAWhdaMLv9OKbh8yMn3ld05ZSEMr22ZJgEMumlyQ5 +/w1kqFiRx052BTxQhHLcAao4rNwUddcNnaTNYlDpuq79a872t5xnEhKOb/kegFA5IRkbekmvbSrEA== This is a multi-part message in MIME format. --------------3FDFDFD3121386F95EC1C702 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit At one point we had a javadoc doclet that we would run. We had a way of documenting properties so that they would show up and I seem to recall that there was a single page that listed them out. It was a while ago, so I am not sure what happened to it. In addition to that, I have always thought that a list of public static methods in all of the class, in one place, would be useful. - ray On 4/21/21 11:49 PM, Jens Schulze wrote: > 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 >> >: >> >> Hello Jens, >> >> by setting the following property it will work correctly: >> >> er.extensions.ERXApplication.DefaultEncoding=UTF-8 >> >> regards und schönen Gruß >> Peer >> >> >> >>> Am 21.04.2021 um 19:26 schrieb Jens Schulze >>> >> >: >>> >>> Hello List! >>> >>> I need help! I want to convert a html Page with German characters to >>> PDF following the „ERPDFExamples“. >>> >>> 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ünsterstrasse 265www.profjens.de >>> 46397 Bocholtjens.schulze@me.com >>> 02871-2155 864jens.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* >>> >>> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd >>> "> >>> >>> >>> >>> >>> >>> ERPDFGeneration Examples >>> >>> >>> >>> >>> Test öä ä >>> >>> >>> >>> >>> >>> *BUNDLES* >>> "CurrentPage" = "er.pdfexamples.components.SimplePDFGeneration1"; >>> "Bundles" = { >>> "ERExtensions" = "7.1-SNAPSHOT"; >>> "JavaWebObjects" = "5.4.3"; >>> "ERPDFExamples" = ""; >>> "ERJars" = "7.0"; >>> "JavaXML" = "5.4.2"; >>> "JavaJDBCAdaptor" = "5.4.3"; >>> "WOOgnl" = "7.0"; >>> "JavaEOAccess" = "5.4.3"; >>> "JavaEOControl" = "5.4.2"; >>> "JavaFoundation" = "5.4.3"; >>> "JavaWOExtensions" = "7.0"; >>> "ERPDFGeneration" = "7.0"; >>> "ERPrototypes" = "7.0“; >>> >>> 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. >>> >>> git clone git://github.com/wocommunity/wonder.git >>> WonderSource >>> >>> 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 @ * >>> * >>> * >>> >>> >> > --------------3FDFDFD3121386F95EC1C702 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

At one point we had a javadoc doclet that we would run. We had a way of documenting properties so that they would show up and I seem to recall that there was a single page that listed them out. It was a while ago, so I am not sure what happened to it.

In addition to that, I have always thought that a list of public static methods in all of the class, in one place, would be useful.

- ray


On 4/21/21 11:49 PM, Jens Schulze wrote:
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=UTF-8

regards und schönen Gruß
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 „ERPDFExamples“. 

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ünsterstrasse 265 www.profjens.de
46397 Bocholt jens.schulze@me.com
____________________________________________________________

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="1.0" encoding="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 = "yes" filename = "SimplePDFGenerationExample1.pdf" >

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

    <title>ERPDFGeneration Examples</title>

  </head>
  <body>

Test öä &auml;

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

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

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 @ 





--------------3FDFDFD3121386F95EC1C702--