| Author |
How to add a new charset?
|
James Lee
Ranch Hand
Joined: Oct 16, 2006
Posts: 36
|
|
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
Joined: Nov 07, 2011
Posts: 2
|
|
|
this problem was resolved?
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
It wasn't a problem, actually.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
But welcome to the Ranch austine hsieh
|
 |
austine hsieh
Greenhorn
Joined: Nov 07, 2011
Posts: 2
|
|
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?
|
 |
 |
|
|
subject: How to add a new charset?
|
|
|