Operating System - HP-UX
1827807 Members
2578 Online
109969 Solutions
New Discussion

Unable to read thai characters in Java application

 
Jyoti Lakshmi Ramchandr
Occasional Contributor

Unable to read thai characters in Java application

I have a Java application that parses XML files containing thai characters. When I run this parser the thai characters lose its encoding and displays as ???? (question marks). Is there any patch or settings (encoding related) I require to do to set to view thai characters.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Unable to read thai characters in Java application

What is your java version?

Did you install the recommended and REQUIRED patches for java as noted on this web page?

http://www.hp.com/products1/unix/java/infolibrary/patches.html

That is an excellent place to start.

There are patches on this list relating to character sets in several east asian languages.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jyoti Lakshmi Ramchandr
Occasional Contributor

Re: Unable to read thai characters in Java application

Java version is 1.3.1.07. The patch list however doesn't cover charsets for Thai language. I have set the encoding to tis-620 and even set the default (Locale.setDefault) to thai language and also set the lang.properties to thai. Still the output is not ok.

The same parser works well in Windows platform. Is there any special setting required in HP-UX for enabling Java to parse thai docs.

Any further help?