Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Cp1252 problem

Thread view: 
moop™ - 27 Sep 2006 14:15 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.

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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.