• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Japanese characters in eclipse 3.2.2

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created a properties file in eclipse in eclipse 3.3.2, in which I need to write some Japanese characters.
I have created a Java project for the same and in Project --> Properties --> Info --> Text File Encoding, I have selected "Other" radio button and "UTF-8" as the value (by default,radio button "Inherited from container Cp1252 was selected ).

Still when I try to save the properties file with Japanese characters in it, it gives me the following error
"Save could not be completed.
Reason: some characters cannot be mapped using "ISO-8859-1" character encoding. Either change the encoding or remove the characters which are not supported by the "ISO-8859-1" character encoding.

I have also tried (eclipse) Window--> Preferences --> WorkSpace, also I have selected "UTF-8", still the problem persists.

Can someone please let me know how to resolve this problem.

thank you
[ September 08, 2008: Message edited by: Thomas Greene ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use "MS932" for text file encoding and it works fine for me. I hope this may help others.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think the Project --> Properties --> Info --> Text File Encoding will work for properties files (*.properties). These are special files, which should not contain anything different from ISO-8859-1. An external file containing the locale characters should be turned into ascii by using the native2ascii command. If you insist on using UTF-8 for properties files, then the following setting should do it :
Window -> Preferences -> General -> Content Types -> Text -> Java Properties File : change the Default encoding and Update.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And I didn't see this was an old thread.... Please DontWakeTheZombies.
 
reply
    Bookmark Topic Watch Topic
  • New Topic