Hi,
My source file has Chinese characters in it, when saving the file
Eclipse alerts it cannot be saved due to "Some characters cannot be
mapped using "Cp1252" character encoding.". Why? Is it the problem
about Unicode support? My machine is running on WinXP x64 Pro English.
Regards,
Sam Huang
Hendrik Maryns - 27 Sep 2006 15:09 GMT
moop™ schreef:
> Hi,
> My source file has Chinese characters in it, when saving the file
> Eclipse alerts it cannot be saved due to "Some characters cannot be
> mapped using "Cp1252" character encoding.". Why? Is it the problem
> about Unicode support? My machine is running on WinXP x64 Pro English.
You have to tell Eclipse you want to save the file as Unicode. The
default is probably cp1252. File-> Properties -> Text file encoding ->
choose UTF-8 or enter it.
For questions about Eclipse, you’ll be better off in one of the Eclipse
newsgroups: www.eclipse.org/news
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Mike Schilling - 27 Sep 2006 15:20 GMT
> Hi,
> My source file has Chinese characters in it, when saving the file
> Eclipse alerts it cannot be saved due to "Some characters cannot be
> mapped using "Cp1252" character encoding.". Why? Is it the problem
> about Unicode support? My machine is running on WinXP x64 Pro English.
Because Cp1252 doesn't contain thsoe characters. Try saving the file in,
say, UTF-8, which contains all of Unicode.