0

当我在数据库中插入西里尔字母时,我得到了类似 Урок 2 - ПърваÑ,а програма。我该如何解决?我正在使用 utf8_unicode_ci

4

2 回答 2

0

quick and dirty solution
issue an SQL query

SET NAMES utf8

every time you connect to your database.

于 2012-04-25T13:04:53.823 回答
0

Try using sql function SET NAMES 'utf8' right after connection.
Check what is the encoding of the field in the database.
Check MySQL connection collation

于 2012-04-25T13:05:11.063 回答