Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d6y/mysql-lift-charset-test
Lift app to try to insert UTF-8 data to a MySQL database
https://github.com/d6y/mysql-lift-charset-test
Last synced: 3 days ago
JSON representation
Lift app to try to insert UTF-8 data to a MySQL database
- Host: GitHub
- URL: https://github.com/d6y/mysql-lift-charset-test
- Owner: d6y
- Created: 2010-11-19T14:14:30.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-19T14:15:03.000Z (about 14 years ago)
- Last Synced: 2024-11-11T06:08:06.363Z (2 months ago)
- Language: Scala
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
So you think you have a character encoding problem, eh?
This Lift app attempts to insert UTF-8 data into a table it creates and then show
you what comes back.By default the table is called foo, with a username and password of foo (see Boot.scala).
We assume MySQL.When you run the app, visit http://127.0.0.1:8080 and see the data inserted and
what is recovered when the table is queried.Instructions:
1) Set up a MySQL database:
$ mysql -u root -p --default-character-set=utf8
MYSQL> CREATE DATABASE foo CHARACTER SET utf8 COLLATE utf8_bin;
MYSQL> grant all privileges on foo.* to 'foo'@'localhost' identified by 'foo';
MYSQL> flush privileges;2) Run the app:
$ sbt jetty
3) open http://127.0.0.1:8080/ and see the results.