I have a few tables that are marked as utf8 (probably due to mistakes when importing from another server, several years ago), although their data is actually greek (single byte). Is there any way I can change the encoding of the table without having MySQL try to convert the data too?
Edit to avoid more misunderstandings: The data IS NOT UTF-8. It’s just marked as such. I want to change the encoding of the table to reflect the actual encoding of the data, so that I can proceed to actually convert them to utf8.
Thanks.
Apparently the solution is to export the raw data (
SELECT * INTO OUTFILE ...), use iconv from the command line to convert from utf8 to latin1 and then import back (LOAD DATA INFILE ... CHARACTER SET GREEK) 🙂