title: saving unicode to database
body: <p>I am trying to save the following string to mysql database using django (I got the string from somewhere else)</p>
  
  <pre><code>m.cr1 = u"\U0001F3C9" # cr1 is models.CharField(max_length=50)
  m.save()
  </code></pre>
  
  <p>I get the error</p>
  
  <pre><code>Warning: Incorrect string value: '\xF0\x9F\x8F\x89' for column 'cr1' at row 1
  </code></pre>
  
  <p>I've looked on other related questions here, and change mysql to be utf8_unicode_ci, but this does not help. In general, my code works ok with unicode, but not in this specific case.</p>
  
  <p>I guess that this is related to the fact that this is 32 bits unicode.</p>
  
  <p>I actually just want to detect this case, and maybe to ignore the bad characters.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>