From: Charlie G. <cha...@gm...> - 2009-01-13 17:56:29
|
On Mon, Jan 12, 2009 at 1:45 PM, Rose Pan <ros...@or...> wrote: > Hi, Charlie, > > Thanks for the detail explanation. I replaced the encoding to "euc_jp" which > my terminal is using and tried out the sample again. It works when printing > out in java directly. But it does not work when printing out in Jython and > the java in the call from Jython. It works Here is the result: > > From Java: a = '\u4f7f\u7528' > From Jython: ( > From Java From Jython: ?? I'm not sure what's going on without being able to reproduce your terminal setup. It works for me if I set my console's encoding to euc_jp along with the encoding in the test Java file. Is your result really printing the escaped unicode values instead of rendering single characters? That seems like its broken in Java before it even gets to the Jython. |