| Author |
Character Encoding and decoding
|
Mohan Ganesan
Greenhorn
Joined: Nov 22, 2003
Posts: 18
|
|
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
Saloon Keeper
Joined: Oct 25, 2008
Posts: 2700
|
|
|
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.
|
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32673
|
|
|
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
Joined: Nov 22, 2003
Posts: 18
|
|
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
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
You will want to read this article: Character Conversion from Browser to Database.
|
 |
 |
|
|
subject: Character Encoding and decoding
|
|
|