How to change encoding of the mysql dump files?
When I run mysqldump command it creates file encoded in ANSI. How to change it to utf-8? I have also tried to do this:
mysqldump --user=user1--password=pas1 --default-character-set=utf8 mydb1 mytbl1 > e:\1.sql
According to this forum thread, the culprit is the
> filenameredirection on Windows, which seems to have trouble with UTF-8 characters.Try using the
--result-fileparameter instead.