- Code: Select all
Resources.getStringArray( R.array.CHINESE_CHAR );
The ones I've found that does NOT get loaded are:
鼠 <--- this char is used in the below example
納
造
倉
下
服
朋
程
看
舉
So if one defines (in strings.xml):
<array name="CHINESE_CHAR">
<item>老鼠</item>
</array>
then after executing the code:
String[] stringArray = Resources.getStringArray( R.array.CHINESE_CHAR );
stringArray[0] will then have the value of "老" (the word "鼠" will not get loaded)
But if one uses other symbols next to the character, they will get loaded correctly. (I use parenthesis)
<array name="CHINESE_CHAR">
<item>老(鼠)</item>
</array>
stringArray[0] will have the value of "老(鼠)"
Wayne Chiang