C
C
Ciscoridze2016-03-10 17:13:53
MySQL
Ciscoridze, 2016-03-10 17:13:53

How to correctly display Cyrillic (YII) from the mySql database?

The YII framework writes the Cyrillic alphabet to the database normally, the views display normally, but the Cyrillic alphabet is output incorrectly from the database. Where to dig?
base/tables utf8_general_ci

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2016-03-10
@karminski

Check my.cnf settings

collation-server = utf8_unicode_ci
character-set-server = utf8

You can also add to my.cnf,
but this is a last resort.

A
Artem Kislenko, 2016-03-10
@webwork

Just in case, I will mention that there may be an error in the wrong encoding of the page (both in the document itself and in the meta headers).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question