dcsimg
Character Encoding
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   elisabeth_jolly
Posted On:   Sunday, June 24, 2001 11:57 PM

To convert the characters encoded with Big5 to Unicode and then to

gb2312, i set the content type to "text/html; charset=gb2312"

But not working perfectly. questionmark character coming frequently with gb2312 scheme.?

Re: Character Encoding

Posted By:   Theresa_Rosenbaum  
Posted On:   Tuesday, June 26, 2001 05:30 AM

Did you try using str.getBytes(encoding) and the creating a new String(byte[], encoding) using the byte[] from getBytes?
I was messing with the encoding stuff... I didn't have to convert though, I just got gb2312 characters and had to display them.
But, it might be worthwhile looking at those methods.

If I am unclear, please say.
About | Sitemap | Contact