Mr. Webster,

Thanks for your reply. I use aspectj-1.5.3 and build the project in elipse
3.2.0. I build a new aspectj project, then add a test.java class to the src
folder, which include the "main" method and println some Chinese character.
But the output seems encoded incorrectly. And just as you presume, after I
converted the project to a java project using aspectj tools in eclipse, the
output became correct. In the aspectj project, I have tried "
System.out.println(new String(s1.getBytes("gbk"), "utf-8"));", "
System.out.println("unicode: " + new String("你好".getBytes("unicode")));" and
and so forth. But they did not work as I except. Tht result still incorrect.
I also have tried set the "non-standard compiler options" in aspectj
compiler panel to "-encoding GBK" but it did not work, too. I worked on this
problem for nearly two days and now I do not what I can do on earth. Can you
help me?

Thank you very much!

Heping Zhang


2007/1/8, Matthew Webster <[EMAIL PROTECTED]>:


How are you building your application? Which version of AspectJ are you
using? I presume you get the expected output when you application is
compiled with javac (or equivalent)?

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, [EMAIL PROTECTED]
http://w3.hursley.ibm.com/~websterm/<http://w3.hursley.ibm.com/~websterm/%02>


  *"Heping Zhang" <[EMAIL PROTECTED]>*
Sent by: [EMAIL PROTECTED]

06/01/2007 13:11   Please respond to
[email protected]

   To
[email protected]  cc
  Subject
[aspectj-users] help! problem about encoding





hi,
In aspectj project when I use System.out.println("something"); and that
"something" is not English words, the output is not encoded correctly. For
example, I want print "你好你好" but get "浣�濂戒��濂�".  Can someone help me?
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users



_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to