This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Character Encoding and decoding  RSS feed

 
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.
 
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.
 
Marshal
Posts: 58322
178
  • 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.
 
Sheriff
Posts: 23451
46
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!