Hey. I use heidisql 9.3.0.4984 on Win 7 x64. there is a table and a database encoded in utf 8. I use the following code to download the file with Russian letters in the encoding cp1251:
LOAD DATA LOCAL INFILE 'c:/history.csv'
INTO TABLE coesia CHARACTER SET cp1251
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS
(nomer,centr,tipop,@createdate,operator,`status`)
SET createdate = STR_TO_DATE(@createdate, '%d.%m.%Y');
through delphi I send commands:
SET CHARSET cp1251;
SET NAMES cp1251;
LOAD DATA LOCAL INFILE 'c:/history.csv'
INTO TABLE coesia CHARACTER SET cp1251
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS
(nomer,centr,tipop,@createdate,operator,`status`)
SET createdate = STR_TO_DATE(@createdate, '%d.%m.%Y');
and all the letters are loaded correctly when I execute this code (with the commands SET and without them) in heidisql Russian letters are converted here in this: ���� �� �. ������ � �������� ������ What shall I do in order to file with Russian letters through heidisql loaded correctly?