Eclipse character encoding problem [message #779691] |
Mon, 16 January 2012 10:34 |
Missing name Missing name Messages: 7 Registered: December 2011 |
Junior Member |
|
|
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 #883665 is a reply to message #780141] |
Sat, 09 June 2012 03:05 |
AM Desai Messages: 1 Registered: June 2012 |
Junior Member |
|
|
I am new to the character encoding issue in Eclipse. But i was not able to a make a change and save a (php) .module file because of an error involving the cp1252 encoding. i saw this post and changed it to ISO-8859-1, closed the file, re-opened it and everything appears to work now. so, first off, i thank for the useful feedback.
Can anybody explain to me what the deal with the character encoding is? I hope changing it from cp1252 to iso8859 will not break something else down the line..
thanks,
[Updated on: Sat, 09 June 2012 03:06] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01878 seconds