UTF-8 problems, again

Posted by Martin Homik | Posted in Uncategorized | Posted on 19-01-2009

0

Today, I ran into a UTF-8 problem again. That was, when I copied a text snippet from Thunderbird into an Eclipse properties file. Be careful, when you copy-and-paste text from your e-mail nto your Eclipse editor. It looks like the encoding of the pasted text
is superior to the encoding of the existing text. It changed the endcoding f the file several times. Solution:

  1. Copy the full property/text file into clipboard.
  2. Close the file in Eclipse.
  3. Open Notepad++ and set Format to UTF-8.
  4. Paste the text from Clipboard into Notepad++.
  5. Save the file as the one you want to have.
  6. Reopen in Eclipse.
  7. Encoding will be set to UTF-8.

Good luck!
Martin

Write a comment