Character Encoding, UTF or ANSI?

Posted by Paulocoghi on Stack Overflow See other posts from Stack Overflow or by Paulocoghi
Published on 2010-04-13T17:49:10Z Indexed on 2010/04/13 17:53 UTC
Read the original article Hit count: 642

I'm using Eclipse in Ubuntu to edit PHP files.

But, unfortunately, some of these PHP files were created in Notepad++ in Windows XP, with ANSI encoding defined.

Also, these files generates HTML codes with charset=ISO-8859-1.

When I configured Eclipse to ISO-8859-1, many special characters were lost and changed to '???', and when I try to save a file with ISO enconding, Eclipse displays an error that was not possible to save the file because some characters aren't compatible with the charset.

How can I save these files without changing the encoding, or how can I change the encoding without lose characters.

© Stack Overflow or respective owner

Related posts about ubuntu

Related posts about eclipse