Eclipse character encoding problem [message #779691] |
Mon, 16 January 2012 05:34  |
Eclipse User |
|
|
|
Hi,
Sorry if this have been discussed before, I could not find a solution to my particular problem.
I am using Eclipse Indigo V. 3.7.0
When I save a particualr file,the following error comes:
"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
"
It tells me to save in UTF-8. If I save the file in UTF-8, then I have following problem when I see the changes in Clear-Case version control:
über became �ber
für became f�r
fr became f�r
The file is may be 10-15 years old, and may be was originally done in "ISO-8859-1", May be in the mean time some of the encoding are corrupted (like "fr", which should be "für"). The thing is, those are only in the comments, and I do not need to change them, but Eclipse changes them "Automatically". If I save the files with Code-Warrior or Notepad++. they are not changed automatically.
I have tried to save the file with US-ANSI, cp1252, UTF-8 also, with same result.
What I can change in EClipse so that it leaves those un-changed ? Or finds the correct encoding for, say "ü" ?
Thank you.
|
|
|
|
|
|
|
|
|
|
|
|
Re: Eclipse character encoding problem [message #1006851 is a reply to message #883665] |
Sat, 02 February 2013 17:11  |
Eclipse User |
|
|
|
The environment variable need to be set in the Eclipse preferences window under C/C++/Build/Environment. You need to add a new variable by clicking on the Add button. The variable name should be set to LANG and the value to en_US.ISO-8859-1
|
|
|
Powered by
FUDForum. Page generated in 0.04170 seconds