You were hoping for something like Избере
? You have Mojibake. Probably this is what happened:
- The bytes you have in the client are correctly encoded in utf8 (good).
- You connected with
SET NAMES latin1
(or set_charset('latin1')
or ...), probably by default. (It should have been utf8
.)
- The column in the tables may or may not have been
CHARACTER SET utf8
, but it should have been that.
If you need to fix the data it takes a "2-step ALTER", something like
ALTER TABLE Tbl MODIFY COLUMN col VARBINARY(...) ...;
ALTER TABLE Tbl MODIFY COLUMN col VARCHAR(...) ... CHARACTER SET utf8 ...;
where the lengths are big enough and the other "..." have whatever else (NOT NULL
, etc) was already on the column.
Unfortunately, if you have a lot of columns to work with, it will take a lot of ALTERs. You can (should) MODIFY
all the necessary columns to VARBINARY
for a single table in a pair of ALTERs
.