K
K
Kirill Plotnikov2015-12-20 20:56:54
PHP
Kirill Plotnikov, 2015-12-20 20:56:54

Question marks dle. How to solve the problem?

kinonik.ru here is the site. Question marks suddenly appeared, although before that everything was fine ... Now I don’t know what to do, I have already tried everything that is offered on the Internet. Can you help?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2015-12-20
@Snipeek

1. We make a backup of the site. Delete all script directories except uploads. upload UTF-8 version of DLE. We restore the files in it to the engine / data directory.
2. All template files must be in UTF-8 without BOM. The head should also be utf-8.
3. All tables in the database, and the database itself must be encoded in utf8_general_ci. You can convert by asking:

SELECT CONCAT(  'ALTER TABLE `', t.`TABLE_SCHEMA` ,  '`.`', t.`TABLE_NAME` ,  '` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' ) AS sqlcode
FROM  `information_schema`.`TABLES` t
WHERE 1 
AND t.`TABLE_SCHEMA` =  'MY_DB_NAME'
ORDER BY 1 
LIMIT 0 , 90

Plus (probably) there is something useful here: dle-news.ru/tips/1483-konvertirovanie-bazy-dannyh-...
4. В. htaccess add this to the top:
AddDefaultCharset UTF-8

K
Kirill Arutyunov, 2015-12-20
@arutyunov

Encoding problem. See database or file encoding.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question