M
M
MdaUZH2016-01-07 11:34:09
PHP
MdaUZH, 2016-01-07 11:34:09

Recording Cyrillic in the database?

There is a problem with writing Cyrillic characters to the database...
For some reason, an empty string is written or nothing is written at all...
File encoding - UTF-8 without bom
Table encoding - utf_8_general_ci
Connection encoding - UTF-8 ( $this->DBH->exec ('SET NAMES utf8'); )
But still nothing is written, what could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
synapse_people, 2016-01-07
@synapse_people

Throw the code with which you write to the database and what engine is used there (MyISAM / InnoDB etc ...).
By the way, "$this->DBH->exec('SET NAMES utf8');" this does not expose the connection encoding..)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question