Werner Punz schrieb:
Paul Iov schrieb:
Hi All,

It's definitively the Eclipse (probably win32 only) issue! I've had the
same problem (but unfortunately no exact solution). If one switches the
encoding of EXISTING file, let's say, from 1251 to UTF8,  some
characters becomes converted in very strange way. I.e. German umlaut
becomes expanded into 4 monkey characters and stay in this state after
switching back. This should affect the resource files as well.

That is expected eclipse behavior, eclipse tries to retain the data as
valid as possible,
which means if you code a file in iso for instance and then switch to
utf, it keeps the byte values but displays the utf data.

you can try it out, code something with special chars switch the
encoding and switch it back, at the back switch the data will be ok again.

everything you type anew is in the new encoding however.


Well, the 'conventional' special characters were not exactly the problem of mine. I've switched the encoding for my project and discovered one day later some mysterious runtime errors, something like "unexpected bytes in prolog". It took a lot of time to find this bytes, which was really present but just 'invisible' in other editor/encoding, and the only hint were that comments in German with 'disappeared' umlauts. It was really like a nightmare, since the encoding was switched for project with some hundreds of files but just two or three XML files was affected :)

Reply via email to