PDA

View Full Version : Text encoding


intellagent
05-31-2005, 12:59 AM
Hi,
In LPS 3.0 Release Notes there is a short remark:

------------------------
Encoding

By default, LZX now expects text to be UTF-8. You can specify a different encoding within an <?xml?> processing directive at the beginning of an application source file or an XML data file:

<?xml encoding="UTF-16"?>
<canvas>…</canvas>

<?xml encoding="ISO-8859-1"?>
<data>…</data>
-------------------------

Does it mean, that I can have connections in an application to 2 Oracle databases, the first one is UTF-8, the second is ISO-8859-2, and all I have to do is to declare the encoding in the incoming XML?

Thanks

hqm
06-03-2005, 01:18 AM
No, that XML encoding being referred to is only for compiling your source files from disk.

I wrote a short note about Unicode and LZX and JSP pages at

http://www.openlaszlo.org/wiki/Resources

Everything between the client and server should be UTF-8, except as noted in the article the client sometimes uses UTF-8 encoded as a set of discrete bytes encoded as ISO-8859-1, most confusingly.

intellagent
06-22-2005, 04:12 AM
Hi,

After reading Your note, we have changed the request to POST. Now the Laszlo application really writes into the Oracle nvarchar2 field the proper unicode charactercodes for the special Hungarian characters, but when I backread it, the appearance is not good.
We use Oracle XML SQL Utility (XSU) to generate XML.
Where can be the bad encoding?

Thanks