This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to store the Chinese character value in the Java. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to store the Chinese character value in the Java." Watch "How to store the Chinese character value in the Java." New topic
Author

How to store the Chinese character value in the Java.

Balaji Soundarajan
Ranch Hand

Joined: Jan 23, 2009
Posts: 59
Hi,

I need to assign the Chinese character string in the java String variable. I am getting the value from the jsp file, in jsp through script the chinese value is displaying but in java i can't able to store the same value in the java String variable.

Please do the needful.

Regards,
Balaji.S
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Java Strings support unicode, so there is nothing to prevent you saving a Chinese character. Have a read of this.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
wood burning stoves
 
subject: How to store the Chinese character value in the Java.
 
Similar Threads
char to string conversion
Chinese characters are not displayed correctly
Java char data type problem
database operation with other character set
Need to store the Chinese character in the Java String variable from the ResultSet