Bookmark Topic Watch Topic
  • New Topic

Charset for Java 1.5 and 1.6  RSS feed

 
Joseph Tsui
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
I tried to use the InputStreamReader to convert from one Big5 to UTF-8.
previously, it works fine with jdk 1.5

After i upgraded to jdk 1.6 , it returns me the error as below

java.io.UnsupportedEncodingException: big5
at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)

I find that the charset supported by both version are different

How to make it work in 1.6 if i want to use some charset that previously supported ?

thanks in advance
 
Alan Moore
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Report post to moderator
As I said in your other thread, Big5 works fine on my JDK 1.6 machine. I think we're going to need to see your code before we can help you.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16059
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dear Joseph,

I am one of the moderators of the JavaRanch forums. Here on JavaRanch, we have a naming policy. We want the users of JavaRanch to use a real-sounding name as their display name.

Unfortunately, your name "Joseph" does not comply to the naming policy. Your display name should consist of a real-sounding first name, space, and a second name. Not only a first name, no obviously fake nickname, no initials only for the second name.

Please read the naming policy carefully and change your display name. You can change your name by editing your profile.

Please note that we are taking the naming policy seriously. If you do not change your display name, your account on JavaRanch might be locked.

Have fun on JavaRanch,
Jesper Young - Bartender
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
Alan Moore wrote:As I said in your other thread, Big5 works fine on my JDK 1.6 machine. I think we're going to need to see your code before we can help you.
I hadn't realised there is another thread. Please continue the discussion there, and please read this FAQ.

Closing this thread as a duplicate.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!