Community
Participate
Working Groups
The Text editor cannot read files with GB18030 characters even if they are saved as unicode or UTF8. STEPS 1) Create a text file in Notepad on a GB18030 enabled machine 2) Save the file as unicode, big endian unicode and UTF8. 3) Import all 3 files into Eclipse 4) Set your text font to a GB18030 font 5) Open all 3 - none will have the correct contents 6) Exit eclipse and open the files using Notepad - all will be correct 7) Start Eclipse again 8) Create a new text file with GB18030 characters 9) Save the file 10) Reopen it in Eclipse - content is ?????? 11) Exit in Eclipse and open in Notepad - content is ??????? The text editor cannot read or save unicode characters in a GB18030 system
Not just a GB18030 issue - the same thing happens in Japanese
These are two separate problems: 1. lack of UTF8 or UTF16 support 2. characters lost even when sticking to the filesystem's encoding What is the filesystem encoding in this case? Is it GB18030? Can you reconstruct the problem using: String str = "{Some string with GB18030 chars}"; byte[] bytes = s.getBytes(); String newStr = new String(bytes); str.equals(newStr)?
*** This bug has been marked as a duplicate of 5399 ***