Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…to deployment section and reworded slightly.
  • Loading branch information...
commit 4f7b57b677c2f1a62ddbedb1abc9233fcf7192fd 1 parent a5d8379
@d6y authored
View
28 docs/0450-SQL-Mapper/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)
-
View
24 docs/0900-Deployment/0100-Unicode-Encoding.md
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.