• Post Reply Bookmark Topic Watch Topic
  • New Topic

Character Encoding and decoding  RSS feed

 
Mohan Ganesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me how I can decode a string which was encoded by UTF-8. My java version is 1.4. Thanks in advance.
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the java.lang.String class. It contains methods that can encode the String into many CharSet's. Also some readers and writers have Charset options.
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using such an old version of Java? Where are you decoding it? Can you not simply pass "UTF-8" as a parameter to your reading methods?
 
Mohan Ganesan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reason is: Input is from web browser then the transaction reaches weblogic where the japanese character is converting into UTF-8. from web logic the UTF-8 converted japanese character reached websphere Business integration(WBI 4.3 with jdk1.4), then its inserting into Oracle table through insert query.
The issue is, Oracle Apps or fornt end is unable to get this japanese character inserted by WBI. Oracle team asking to insert as it is in Japanese character.

Please let me know for any clarification.

Thanks.
 
Paul Clapham
Sheriff
Posts: 22819
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will want to read this article: Character Conversion from Browser to Database.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!