I'm trying to load data from txt file to the following MySQL table
CREATE TABLE test_cyrillic
(
id INT,
name NATIONAL VARCHAR(200)
);
File with data looks like
1 Отзывы › Техника и оборудование
Database was created with UTF8 characterset and utf8_general_ci collation.
The command looks like
LOAD DATA LOCAL INFILE 'S:\\Projects\\MyDir\\test_cyrillic.txt'
INTO TABLE test_cyrillic
CHARACTER SET utf8
FIELDS TERMINATED BY '\t'
OPTIONALLY ENCLOSED BY '"' ESCAPED BY ''
LINES TERMINATED BY '\r\n'
However, selecting data from this table I have the following output
id name
0 B7K2K : "5E=8:0 8 >1>@C4>20=85
Whereas when inserting data through INSERT statement
insert into test_cyrillic values(2,N'Отзывы › Техника и оборудование')
everything is OK. Could anyone please tell me what is wrong about LOAD DATA in this case?