On Tuesday 06 October 2009 00:15:44 smallufo wrote:
Both of my java and php file are encoded in UTF8
It seems Chinese words in php can successfully pass to java side ,
BUT , java side cannot correctly pass Chinese words back.
see my attachments for detail .
If you cannot see the attachment
javac assumes the source file is latin-1 unless anything else is explicitly
specified.
The easiest way to deal with that is to use unicode
escapeshttp://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#100850in
the java source.
-Knut
On Thu, Oct 22, 2009 at 01:38, Илья
Hi
I am new to Quercus .
I just downloaded resin 4.0.1 , want to try java-php integration.
But at first step , I am stuck in the encoding problem :
Both of my java and php file are encoded in UTF8
It seems Chinese words in php can successfully pass to java side ,
BUT , java side cannot correctly
That's a long live problem which exists in all
Quercushttp://caucho.com/resin/doc/quercus.xtp
version.
I believe that's because of the poor unicode implementation of mysql (or all
db specific) functions.
I raised the question to Scott one years before, yet not solved now.
- Wesley
2009/10/6