aspose file tools
The moose likes JDBC and Relational Databases and the fly likes insert chinese language to mysql db Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "insert chinese language to mysql db" Watch "insert chinese language to mysql db" New topic
Author

insert chinese language to mysql db

Li Jenny
Ranch Hand

Joined: Apr 19, 2010
Posts: 57
i would like to ask how can i insert chinese character into db
as i type chinese in the textarea,then insert.
i view in db is become symbol (not eng and chinese)

need to set characterset in mysql and also set the characterset in jsp??
Ravinderjit Singh
Ranch Hand

Joined: Jan 13, 2010
Posts: 78
You should use UTF-8 character encoding like this.

create database yourdb CHARACTER SET utf8 COLLATE utf8_bin;
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: insert chinese language to mysql db
 
It's not a secret anymore!