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
escapes<http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#100850>in
the java source.

-Knut



On Thu, Oct 22, 2009 at 01:38, Илья Казначеев <[email protected]> wrote:
> 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 , I uploaded to here :
>>
>> http://i273.photobucket.com/albums/jj212/smallufo/quercus_Chinese_bug.gif
>
> Are you sure your javac encoding is set to utf-8?
> It should match your source encoding, or else.
>
> And it can still be latin-1.
>
>
> _______________________________________________
> resin-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to