I need to support multiple languages in my native app. I could properly create strings.xml file in their respective folders for various languages (Italian, Spanish, Portuguese, etc.). However, I have tough time in creating strings.xml under values-ja folder for Japanese language.

I have strings in japanese font in word document. When I copy these strings to strings.xml file in eclipse, the strings are replaced with junk characters (i assume it is due to japanese font missing in eclipse or wrong encoding). I googled for hours but couldn't find a way to fix it.

any help will be appreciated.

有帮助吗?

解决方案

You have to save the strings.xml in UTF-8 format.

Follow this guide in order to save your file as a text file using the right encoding. than you can open it in eclipse or notepad to do the your copy paste

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top