wsyy
asked on
Eclipse won't compile due to encoding issue
Hi, I have a number of .java files which contain such characters as '。', stopping the eclipse compiler from compiling the files.
How can I solve this issue?
Thanks.
How can I solve this issue?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you're not sure which, try utf-8
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the other alternative is to use native2ascii to encode the strings
and by moving them into properties files makes it easier to manage
there a good plugin that handles the conversion for you
http://propedit.sourceforge.jp/index_en.html
and by moving them into properties files makes it easier to manage
there a good plugin that handles the conversion for you
http://propedit.sourceforge.jp/index_en.html
String str = "va'l";
URLEncoder.encode(str, "ISO-8859-1");
Use like above example to encode the character and use it..
URLEncoder.encode(str, "ISO-8859-1");
Use like above example to encode the character and use it..
>>the other alternative is to use native2ascii to encode the strings
That's not for setting the encoding of source code. You need to set the encoding for the whole editor
That's not for setting the encoding of source code. You need to set the encoding for the whole editor
ASKER
Thank you all.
:)