I would like import a SQL file encoded into Latin1. I would like keep this file encoding. Data into sql file are well encoded into Latin1.
I executed this command :
mysql -hlocalhost -uroot -p Database --default-character-set=latin1 < file.sql
But data are encoded into utf8 encoded into Database. I don't understand why data are converted. I should obtain "é" (Latin1)and I obtain "é" (utf8).
I created my Database with :
CREATE DATABASE Database CHARACTER SET latin1 COLLATE latin1_swedish_ci;
Can you help me please, how I can import my SQL file to keep enconding ?