I am trying to cut and paste traditional Chinese characters as alternative resources in my values-zh-rTW/strings.xml file. They show as blank white boxes. As far as I can find, every encoding option is set to UTF-8. If it is a font issue, I'm not sure where to change the font or which font to change. I did go to General>Appearance>Colors and Fonts, but I'm not sure which font to adjust, if any. Please help if you've dealt with this before.
-
What program are you using to view them? – Indigenuity Mar 01 '13 at 04:06
-
I am copying into Eclipse from a Google Drive document, with arial font. – Cohen Mar 01 '13 at 04:15
-
When I copy the white boxes from Eclipse and paste somewhere else, such as the Google Search field or a Drive document, the Chinese is displayed properly again. – Cohen Mar 01 '13 at 04:21
3 Answers
You might take a look at this question to make sure you're doing everything mentioned here:
How to support UTF-8 encoding in Eclipse
Here's another question that may have what you need:
How to print [Simplified] Chinese characters to Eclipse console?

- 1
- 1

- 9,332
- 6
- 39
- 68
-
-
Hate to sound like the typical tech help guy, but have you restarted Eclipse since changing the settings? Eclipse can be fickle sometimes with restarts. – Indigenuity Mar 01 '13 at 05:48
-
I have text file encoding set to UTF-8 in preferences>general>workspace. I have everything under preferences>general>Content Types set to UTF-8. I have a language pack that includes Chinese, but I haven't figured out how to install it or if it is needed. I had Chinese working fine in another installation of Eclipse without requiring any additional language packs. Is there another UTF-8 setting or a specific font change that anyone is aware of? – Cohen Mar 01 '13 at 22:34
-
I guess another question I have is whether the Chinese may still show up in the application when compiled even if they are displayed as blank squares in Eclipse. – Cohen Mar 01 '13 at 22:37
I had the same problem and the solution was to install "East Asian Languages" in windows. Just go to control panel, Regional and Language Options, Languages tab, and then check Install files for East Asian languages (it required a windows cd for me).

- 331
- 2
- 5
- 11
There are some chinese characters in my eclipse editor. And it's not displayed correctly.
I change the project's text file coding by Cmd + I
to show the project's Properties setting dialog. then in in put GBK in Text file encoding
. then Apply it. the characters displayed correctly.
The screenshot is as below:

- 14,073
- 11
- 62
- 81