Permalink
Browse files

MySQL UNicode encoding seems more general than just Mapper, so moved …

…to deployment section and reworded slightly.
  • Loading branch information...
d6y committed Mar 7, 2012
1 parent a5d8379 commit 4f7b57b677c2f1a62ddbedb1abc9233fcf7192fd
Showing with 24 additions and 28 deletions.
  1. +0 −28 docs/0450-SQL-Mapper/0100-Unicode-Encoding.md
  2. +24 −0 docs/0900-Deployment/0100-Unicode-Encoding.md
@@ -1,28 +0,0 @@
-Unicode Encoding (Charset) (MySQL)
-========================
-
-Problem
--------
-
-On your Boot class you have
-
- LiftRules.early.append(_.setCharacterEncoding("UTF-8"))
-
-and your database collation is all correct for tables and columns. But if you enter Chinese characters using Lift, they
-are stored as ???
-
-
-Solution
---------
-
-Add
-
- ?useUnicode=true&characterEncoding=UTF-8
-
-to your jdbc connection url
-
-Discussion
-----------
-
-[EMail thread on the Lift mailing list](https://groups.google.com/forum/?fromgroups#!topic/liftweb/DL9AFyU5y2k)
-
@@ -0,0 +1,24 @@
+MySQL unicode charset encoding
+===============================
+
+Problem
+-------
+
+Some characters stored in your MySQL database are appearing as `???`.
+
+Solution
+--------
+
+Ensure:
+
+* `Boot.scala` includes: `LiftRules.early.append(_.setCharacterEncoding("UTF-8"))`
+* Your JDBC connections URL includes `?useUnicode=true&characterEncoding=UTF-8`
+* Your MySQL database has been created using a UTF-8 character set.
+
+
+See Also
+--------
+
+* [EMail thread on the Lift mailing list](https://groups.google.com/forum/?fromgroups#!topic/liftweb/DL9AFyU5y2k)
+* [MySQL UTF-8 test Lift app](https://github.com/d6y/mysql-lift-charset-test) - although it uses SBT 0.7 so is rather out of date.
+* [MySQL JDBC COnfiguration reference](http://dev.mysql.com/doc/refman/5.6/en/connector-j-reference-configuration-properties.html)

0 comments on commit 4f7b57b

Please sign in to comment.