Search code examples
eclipsejakarta-eeencodingutf-8iso-8859-1

Converting existing Java EE project's encoding form ISO-8859-1 to UTF-8


I am working at a Java EE (JSF) project which is derived from an older one. Such old project has been developed using ISO-8859-1 for encoding everything. I would like to use UTF-8 in the new project but the problem is that obviously if I just set eclipse to use UTF-8 instead of Cp1252, the old source files get "mojibaked". Do you know how could I fix this and use UTF-8 everywhere?

Thanks a lot! Bye


Solution

  • Use iconv to convert all files, commit and then change Eclipse project settings.