Frustrated with the output of French text from database
Best
3 Replies
cat dump.sql | mysql whateveroptions --default_character_set=utf8
BTW: Try this and you will see what happens when you convert text which is already utf8 from latin1 to utf8:
echo avancée | recode latin1.. | recode latin1.. | recode latin1..
dpkg-reconfigure locales
If you are from France, select "fr_FR.UTF-8 UTF-8".
Sometimes the problem is more "the charset is not declared properly" than "not everything is in utf8". For example, if you look at email headers, you will see lines like "Content-Type: text/plain; charset="iso-8859-1". By using this information, email clients know when and how charset conversions should be made, without making mandatory that everybody uses utf8.