Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

hz-gb-2312 solution

Thread view: 
Homer - 16 Jan 2006 09:53 GMT
Hi all

I need to support emails in HZ-GB-2312 with JAVAMail, but this charset
is not recognized by SUN's JVM.
Does anybody know of a good solution for this problem?

Thanks
Thomas Weidenfeller - 16 Jan 2006 10:25 GMT
> Hi all
>
> I need to support emails in HZ-GB-2312 with JAVAMail, but this charset
> is not recognized by SUN's JVM.
> Does anybody know of a good solution for this problem?

The international version of Java 1.5 supports a charset called GB2312.
The international version of Java 1.4.2 supports a charset called
EUC_CN, described as "GB2312, EUC encoding, Simplified Chinese".
Probably this is what you are looking for.

If anything else fails, you could try to add an own charset to your
application. This requires some amount of coding. You need to write a
CharsetEncoder, CharsetDecoder, Charset, and a CharsetProvider (and
maybe more, which I forgot).

IMHO looking for a VM which supports the charset might be easier.

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Homer - 16 Jan 2006 13:34 GMT
10x Thomas for your quick response.

GB2312 is not the case here, as it's somewhat different from
HZ-GB-2312. I understand that my solution might be writing my own
charset support, but beforehand I wanted to find out whether there's an
existing product for JAVA, already implemented.

Thanks,


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.