title: django.db.utils.OperationalError: (1366, "Incorrect string value) django mysql
body: <p>hi i created a django project and tried to deploy it on ubuntu apache server with mysql database</p>
  <p>but when i run <code>python3 manage.py migrate</code> i get this error :</p>
  <blockquote>
  <p>django.db.utils.OperationalError: (1366, &quot;Incorrect string value: '\xD9\x88\xDB\x95\xD8\xB3...' for column 'name' at row 1&quot;)</p>
  </blockquote>
  <p>i have only one column named <code>name = models.CharField(max_length=30)</code></p>
  <p>when i run <code>show variables like 'char%';</code> the output is :</p>
  <pre><code>+--------------------------+----------------------------+
  | Variable_name            | Value                      |
  +--------------------------+----------------------------+
  | character_set_client     | utf8                       |
  | character_set_connection | utf8                       |
  | character_set_database   | latin1                     |
  | character_set_filesystem | binary                     |
  | character_set_results    | utf8                       |
  | character_set_server     | latin1                     |
  | character_set_system     | utf8                       |
  | character_sets_dir       | /usr/share/mysql/charsets/ |
  +--------------------------+----------------------------+
  </code></pre>
  <p>and in my <code>/etc/mysql/my.cnf</code> i set <code>[client] default-character-set = utf8</code>
  is there something i've missed ?!</p>