• Post Reply Bookmark Topic Watch Topic
  • New Topic

Confugure MYSQL to accept diffecult char  RSS feed

 
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?
 
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);
 
Message for you sir! I think it is a tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!