RE: [enhydra] Problem with UTF-8 on EE-6.5-1

"Michael Warne" <[email protected]> Tue, 27 Sep 2005 09:34:58 -1000
Newsgroups gmane.comp.java.enhydra.general
Message-ID <2CF3D31C5BDFC742B0F6FF0DE28815BD0641C8@nw2k-exch2003.network2000-hi.local>
This is a multi-part message in MIME format...

------------=_1127849739-29889-120
Content-class: urn:content-classes:message
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Daniel,=20
I think you should post this to the XMLC Group also.  It sounds like an
XMLC issue.

To check if it is XMLC  you could create a simple java application, that
uses your XMLC page class.
Modify your text node and write the output to stdout  or write it to
disk.=20

 // This does Not Use Enhydra Application server code..
 // Only XMLC code.
 //
 public void main(String[] args) {
	ExampleHTML page =3D new ExampleHTML();
      // set the text node
 	page.getElementTest().getFirstChild().setNodeValue("Czech
characters ... in utf-8");
 	System.out.print(page.toDocument());
 }



Mike.

-----Original Message-----
From: Daniel Guryca [mailto:[email protected]]=20
Sent: Tuesday, September 27, 2005 9:19 AM
To: [email protected]
Subject: [enhydra] Problem with UTF-8 on EE-6.5-1


Hi.

I have a real problem with UTF-8 encoding in Enhydra Enterprise.

I have set everything like this:

1) Change the HTML file to have this line:
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">

2) Add this line into xmlc file:
-html:encoding utf-8

3) Add this line into presentation.conf:
Application.Encoding =3D "utf-8"

4) Add this to server.xml -> URIEncoding=3D"utf-8"
...
<Connector port=3D"9000"
maxThreads=3D"150" minSpareThreads=3D"25" maxSpareThreads=3D"75"
enableLookups=3D"false" redirectPort=3D"9043" acceptCount=3D"100" debug=3D"=
0"
connectionTimeout=3D"20000" URIEncoding=3D"utf-8"
disableUploadTimeout=3D"true" />

But I am still not able to get proper characters from my page request.
Everything defined in html files (include utf-8 characters) is printed=20
properly but if I want to do this from my Example.java:

ExampleHTML page =3D=20
(ExampleHTML)myComms.xmlcFactory.create(ExampleHTML.class);
page.getElementTest().getFirstChild().setNodeValue("Czech characters ...

in utf-8");

Final output printed for my page request are bad messed encoded=20
characters!=20
But all utf-8 characters (untouched by java - set statically in HTML=20
file) are printed properly.

Java 1.4.2-09 + EE6.5-1 + Tomcat + Eclipse 3.0.0 (included with EE)=20
running all these on standard Debian Sarge 3.1 with ISO8859-2 locales.

Thank you for your advices.



------------=_1127849739-29889-120
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1127849739-29889-120--