Salicar
12-03-2007, 07:48 AM
Hi All,
Not posted for a while but hoping someone can help me with this issue. We have the following setup.
Java Servlet which using Hibernate returns string via an intemediary Dom4J Document. The Dom4J Document is set to have UTF-8 encoding.
Openlaszlo 4.07 rendering the xml data into a LzText field.
We have the following issues.
1. Pound (£), Euro (€) and various other "unusual" characters render as the square symbol.
2. The < symbol in the database will cause all the text after itself to not render.
I have tried the following solutions for these problems.
a. Changed encoding on XML output to ISO-8859-1 - no success on 1 or 2
b. Changed xml output to put the # entries in for 1. - success however see I. below.
c. Changed xml output to put a double encoding on < symbol for 2. - success however see I.
d. SOLOed the the solution rather than keeping as proxy. - partial success the £ symbol renders but nothing else works still.
Notes
I. our solution has to potentially support a large amount of data over multiple users, i cannot afford for it to be changing "string/xml" data after the grab operation to encode it for display purposes.
II. putting the data into the database in its encoded form is also not valid as the same database is used by several disconnected systems and has to represent the true data.
III. banning certain characters is not possible as we have several sections which have to allow "free text"
Also does an LzText which simply shows text rather than be a simplified HTML renderer exist?
I have read several posts on these issues but nothing is working,
Thanks in advance
Richard
Not posted for a while but hoping someone can help me with this issue. We have the following setup.
Java Servlet which using Hibernate returns string via an intemediary Dom4J Document. The Dom4J Document is set to have UTF-8 encoding.
Openlaszlo 4.07 rendering the xml data into a LzText field.
We have the following issues.
1. Pound (£), Euro (€) and various other "unusual" characters render as the square symbol.
2. The < symbol in the database will cause all the text after itself to not render.
I have tried the following solutions for these problems.
a. Changed encoding on XML output to ISO-8859-1 - no success on 1 or 2
b. Changed xml output to put the # entries in for 1. - success however see I. below.
c. Changed xml output to put a double encoding on < symbol for 2. - success however see I.
d. SOLOed the the solution rather than keeping as proxy. - partial success the £ symbol renders but nothing else works still.
Notes
I. our solution has to potentially support a large amount of data over multiple users, i cannot afford for it to be changing "string/xml" data after the grab operation to encode it for display purposes.
II. putting the data into the database in its encoded form is also not valid as the same database is used by several disconnected systems and has to represent the true data.
III. banning certain characters is not possible as we have several sections which have to allow "free text"
Also does an LzText which simply shows text rather than be a simplified HTML renderer exist?
I have read several posts on these issues but nothing is working,
Thanks in advance
Richard