I found the problem. The default character set in my DB was ucs2, which caused the problem.
If I specify a different character set in the load data infile
command, everything works:
load data infile 'try.txt' ignore
into table MYTABLE
character set latin1
fields terminated by '\t' enclosed by '' escaped by '\\'
lines terminated by '\n' starting by ''
ignore 1 lines;