• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confugure MYSQL to accept diffecult char

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Any one knows how to configure MYSQL4.0.4 to accept (chinese or arabic *the diffecult characters*).
I have read MYSQL doc but I don't find how to perform this task?
 
jim chou
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use java.util.Properties;
Properties pr=new Properties();
pr.put("characterEncoding","big5");//big5 is chinese taiwan
pr.put("useUnicode","true");
and set it in the parameter of connection;
String url="jdbc:mysql://127.0.0.1:3306/test";
DriverManager.getConnection(url,pr);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic