I’m using google translate with my website to translate short, frequently used phrases. Instead of asking google for a translation every time, I thought of caching the translations in a MySQL table.
Anyway, it works fine for latin characters, but fails for others like asian. What collation/charset would be the best to use?
Also – I’ve tried the default (latin1_swedish_ci) and utf8_unicode_ci
One of those should do the trick:
http://dev.mysql.com/doc/refman/5.0/en/charset-unicode-sets.html
Also, as seen in the MySQL documentation:
So, if you select the
utf8_unicode_ciencoding, you will need to execute aSET NAMES 'utf8'query for every connection to your database (run it after a mysql_select_db() or whatever you’re using).