Hi all,
I have my data storage on a OpenBase SQL server and data is stored un UTF-8 format.
The web applications works fine ( I overrided the appendToResponse, takeValuesFromRequest and dispatchRequest methods in Application.java for setting the encoding to UTF-8).
You can see my work at:
http://www.anticasignoria.it
These are seven websites, but is an unique WebObject applicatiion that select correct products, graphics, text and css based on selected site and language.
Now I need to export PDF tacnical sheet of products.
I followed the great Sasha an Chuck's book "Practical WebObjects" for serializing my data in XML format, then trasforming to PDF using Apache FOP.
Exporting data from EO to XML works fine. First XML become UTF-8 encoded.
When I do the "SimpleTrasformation" with XSLT provided by Apple (where the Output Format is set UTF-8), I got bad data encoding, and all accented letters are bad.
Then trasforming again using apache FOP produce really bad results.
I tried to do the "SimpleTraformation" using a software ( TestXSLT, http://www.entropy.ch/software/macosx/#testxslt ), a simple MacOS X app that get in input the original XML and the XLST, and outputs the trasformed XML. It works fine, no encoding trouble.
So I think the trouble is inside the Java trasformation engine, but I don't know how to fix.
Can you help me? Thanks Regards Amedeo |