Created
July 17, 2015 07:25
-
-
Save weber/bebdba2255456e50d87b to your computer and use it in GitHub Desktop.
Установка кодировки соединения nodejs mysql2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var sql1 = "SET CHARACTER SET utf8"; | |
| connection.query(sql1, function (err, result) { | |
| var sql = "SET SESSION collation_connection ='utf8_general_ci"; | |
| connection.query(sql, function (err, result) { | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment