Answer the question
In order to leave comments, you need to log in
Encoding. instant cms. Where do question marks come from?
Cyrillic is displayed incorrectly when outputting (????????).
The base encoding is utf_8_general_ci, .htaccess AddDefaultCharset utf-8.
Where else to look for an error?
(website works on instantcms 2)
Answer the question
In order to leave comments, you need to log in
Found the problem. Maybe someone will come in handy. When declaring mysql pdo, it was necessary to set the encoding
$pdo = new PDO(
'mysql:host=mysql.example.com;dbname=example_db',
"username",
"password",
array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8 "));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question