MysqlDump from Powershell and Windows encoding
问题 I'm doing an export from command line on ms-dos with mysqldump: & mysqldump -u root -p --default-character-set=utf8 -W -B dbname > C:\mysql_backup.sql My database/tables are encoded with UTF-8 and I specify the same encoding when I did the dump. But when I open the file with Notepad++ or Scite I see an encoding of UTF-16 (UCS-2). If I don't convert the file with iconv to UTF-8 before running the import I got an error. It seems that MS-DOS / CMD.exe is redirecting by default with UTF-16. Can I