• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add a new charset?

 
James Lee
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

How can I add Shift_JIS encoding to my java environment so that I can use a string of Japanese chars (e.g., ソqソセ ?

The doc in java.nio.charset.Charset class mentions
Support for new charsets can be added via the service-provider interface defined in the CharsetProvider class.
but I can't figure out how.

thanks,
Lei
 
austine hsieh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this problem was resolved?
 
Paul Clapham
Sheriff
Pie
Posts: 20719
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It wasn't a problem, actually.
 
Campbell Ritchie
Sheriff
Posts: 48378
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But welcome to the Ranch austine hsieh
 
austine hsieh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in fact,i have a problem in a task,my Company is in Taiwan and our charset was Big5,i get '?' in java program when i receive a file .
but the original file was corrected when i open it by ultraedit or other editor,finally, Someone told me '?' was user defined area in Big5,
So i start google how to fix this problem ,i find "charsets.jar" in jre/lib folder,it's define how to convert character from Big5 to Unicode ,
then i have two idea to fix it and i don't change any code in my program.
one, i fix the mapping class in charsets.jar and repackage it,but i think it's not good idea
two, i use CharsetProvider class replace it,but i have no idea how to start it.
Anyone can help me?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic