1

I have a database with data in latin1 encoding format. I am trying to convert all the data into utf-8 as missing some finnish, dansish characters. I tried with the following commands.

 mysqldump --default-character-set=latin1 -u username -p -h example.com database_name > backup.sql
 iconv -f latin1 -t UTF-8 < backup.sql > converted-file.sql

but it is not working. Any help would be appreciated. thanks.

PlayLover
  • 33
  • 2
  • 5

1 Answers1

1
ALTER TABLE mytable CONVERT TO CHARACTER SET utf8
AnandPhadke
  • 13,160
  • 5
  • 26
  • 33