yysasa
asked on
How to convert an UTF-8 String to Big5 String
Anyone knows how to convert an UTF-8 String to Big5 String?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>but the strResult is not in Big5 format, why?
How are you determining this? For instance, if you're viewing the result in a Windows console, it won't support that encoding
How are you determining this? For instance, if you're viewing the result in a Windows console, it won't support that encoding
Try to view it with a Swing component with its Font set to one that supports Big5 characters
>>but the strResult is not in Big5 format, why?
Why did you post that comment after using the same code principle as in the comment you marked as the answer?
Why did you post that comment after using the same code principle as in the comment you marked as the answer?
ASKER
String s = new String(strUTF8.getBytes(),
byte[] big5bytes = s.getBytes("Big5");
String strResult = new String(big5bytes, "Big5");
but the strResult is not in Big5 format, why?