mysql> \. testa.sql ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dummy-line-for-utf8-textfile-start-character. use test' at line 1 Query OK, 0 rows affected (0.26 sec) Query OK, 0 rows affected (0.08 sec) Query OK, 3 rows affected, 1 warning (0.02 sec) Records: 3 Duplicates: 0 Warnings: 1 +--------+------+ | letter | name | +--------+------+ | ب | ba | | ? | fa | | ك | kaf | +--------+------+ 3 rows in set (0.00 sec) +-----------+ | hex('?') | +-----------+ | D981 | +-----------+ 1 row in set (0.00 sec) +---------------+ | unhex('d981') | +---------------+ | ف | +---------------+ 1 row in set (0.01 sec) +------------------+ | unhex(hex('?')) | +------------------+ | ف | +------------------+ 1 row in set (0.00 sec) Query OK, 3 rows affected (0.03 sec) Records: 3 Duplicates: 0 Warnings: 0 +--------+------+ | letter | name | +--------+------+ | ب | ba | | ? | fa | | ك | kaf | | ب | ba | | ? | fa | | ك | kaf | +--------+------+ 6 rows in set (0.00 sec)