Answer the question
In order to leave comments, you need to log in
How to convert to utf-8 correctly?
IE sends this text ÑÑакан, it is in the cp-1252 format, if it is allowed to recode on the Lebedev website, then everything is displayed correctly, but when I try to recode on the server
, let's say this:
$items = mb_convert_encoding('ÑÑакаÐ', 'UTF-8', 'cp-1252');
Answer the question
In order to leave comments, you need to log in
If "fonts are buggy" in the browser, you can fix it through the .htaccess file
in the meta tags:
If this does not help, then look at the data output from the database:
@mysql_connect($sdd_db_host,$sdd_db_user,$sdd_db_pass);// устанавливаем связь с сервером
@mysql_select_db($sdd_db_name);// переключаемся на нужную нам базу данных
// в какой кодировке получать данные от клиента
@mysql_query('set character_set_client="utf8"');
// в какой кодировке получать данные от БД для вывода клиенту
@mysql_query('set character_set_results="utf8"');
// кодировка в которой будут посылаться служебные команды для сервера
@mysql_query('set collation_connection="utf8_general_ci"');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question