LoginSignup
9
7

More than 5 years have passed since last update.

MySQLで日本語を扱うときの注意点

Last updated at Posted at 2014-03-07

MySQLで日本語、というよりUTF-8を扱いたいときは、データベース作るときにutf-8を文字コードに指定しないと大変という話。
日本語を突っ込もうとすると、以下のように怒られる。

Incorrect string value: '\xE3....

なので、mysqldで

create database db_name character set utf8;

と言った感じでutf8を使ってくださいとお願いしないといけない。

9
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
7