Thai script seems to lose UTF-8 encoding in java for-each loop
问题 I'm trying to develop an application within Android Studio on Windows 10. PROBLEM: The following string array of Thai words: String[] myTHarr = {"มาก","เชี่ยว","แน่","ม่อน","บ้าน","พูด","เลื่อย","เมื่อ","ช่ำ","แร่"}; ...when processed by the following for-each loop: for (String s:myTHarr){ //s = มาà¸� before executing any of the below code: byte[] utf8EncodedThaiArr = s.getBytes("UTF-8"); String utf8EncodedThai = new String(utf8EncodedThaiArr); //setting breakpoint here // s is still มà