I am working on a project which require to parse a XML file (in UTF-8 encoding) and put the value into a AS/400 physical file by using JAVA. However, one of the tags in XML may contain both Traditional Chinese and Simplified Chinese characters.
The field in the physical file has already defined as DBCS (Open-type).
Now, my problem is I could only select ONE CCSID every time when I convert the byte stream back into string (for EBCDIC) in JAVA (please correct me if my understanding is wrong), for example, I am now using valueString.getBytes("CP937"). However, it seems that "CP937" does not support Simplified Chinese and if I change it to "CP935", the results is Traditional Chinese cannot be supported this time.
Could anyone advise how can I support both Traditional Chinese and Simplified Chinese? Thanks so much!
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!