I am not sure how my error is termed, but I think my data show hex codes rather than the actual foreign characters.
To be more precise, I have a MySQL database with data like:
G<e9>rard
instead ofGérard
, orM<fc>nster
instead ofMünster
.
Apparently my columns have an utf8_unicode_ci
-encoding (according to phpMyAdmin).
Now I wish to convert strings like <e9>
into é
, either directly in the MySQL-database, or in PHP when the output is being shown.
Apparently others were able to use this response to convert their MySQL-table successfully;
UPDATE db_name SET
column1=convert(cast(convert(column1 using latin1) as binary) using utf8),
column2=convert(cast(convert(column2 using latin1) as binary) using utf8)
However, this doesn't change anything in my case.
So how can I achieve the conversion?
Thank you!