I have .properties files with translations in Arabic, Chinese and other UTF-8 languages. I am using them to replace strings in an html file. However, when I start the copy task, it completely corrupts the symbols and I get something like this: Ø§ÙÙ Ø²Ø§Ø¯Ø§Øª
Any idea what's causing this and how I can fix it?
A standard properties file (non-XML variant) is not expected to use UTF-8 encoding. You should be safe with ISO 8859-1 encoding as long as you use the appropriate Unicode escape sequences to replace the diacritics. See the Properties API documentation and the JLS for more information.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.