enter image description here

Here is a mistake, I do not know where to look. Launch site check - base in utf8 encoding, parameters:

mbstring.func_overload = 2 mbstring.internal_encoding = utf-8

Files of the catalog component converted to utf8 using the script described in the Bitrix community , setting the preliminary path to the folder.

define('START_PATH', $_SERVER['DOCUMENT_ROOT'].'/bitrix/components/bitrix/catalog/'); // стартовая папка для поиска 

Did not help. The main thing for me is this template. uni.loc \ bitrix \ php_interface \ after_connect.php file

 Код $DB->Query("SET NAMES 'utf8'"); $DB->Query('SET collation_connection = "utf8_unicode_ci"'); $DB->Query('SET Character_set_results="utf8"');//my 
UPD An error occurs after executing the instructions of the converter script Here is the error after running the script according to the instructions.

  • What is meant by "make a pattern"? - MichaelPak
  • This template is a standard-bitrix included, not copied to the template folder. Next, I need to get rid of the question marks e = in the picture + so that when viewing in detail there are no question marks. Like the picture prntscr.com/9jeg89 . What to see lang files in the component, there seems to be Russian letters .... and utf8 encoding. - NNN
  • Question marks are another encoding that is different from the one that is currently on the page. Either the problem with UTF-8 in the database, or when connecting to the database is set different from UTF-8, or the site uses another, not UTF-8. - Rang
  • @Rang launched a site check in the admin panel. Base encoded utf8. and which tables are responsible for this component (yes, in principle, they are not)? - NNN
  • 2
    Open the lang/ru/.parameters.php component and see how it is encoded. - u_mulder

1 answer 1

I think that you need to deal with the conversion of the catalog table from the database. If the Bitrix catalog is filled with a third-party module downloaded from the store, then it can work in a different encoding. I came across a similar. The base can be in the utf8 coding and the table too, and the data in the table - in the cp1251 coding.

By means of Bitrix, it is difficult to fix - there are only SQL queries. Better phpMyAdmin or database software.

Possible Solution:

  1. dump database
  2. export the catalog table in the encoding in which it is
  3. in any text editor that allows you to change the encoding, save the file as utf8
  4. clear only this table (TRUNCATE)
  5. Change table and column encoding in utf8
  6. import corrected table in utf8 encoding

Naturally, all site modules, both admin and user, will output data in utf8