Answer the question
In order to leave comments, you need to log in
Problem with encoding when uploading to hosting. How to be?
Hello! I uploaded the site to the hosting, and found the following problem: the menu that is loaded from the database is displayed as question marks. I have read a bunch of articles on different forums. They simply loaded the dump in a different encoding, or the title was different. The header file is connected to all pages:
header('Content-type: text/html; charset=utf-8');
Dump: /*!40101 SET NAMES utf8 */;
Server encoding: UTF-8 Unicode (utf8)
Everything is as it should be, everything works on LAN in Windows and Linux, I did not change the encoding, this page is UTF-8, as well as on all the others. Help me please! Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Are the files saved in utf8?
what is the encoding in mysql?
Try to change such a request in the database to make SET CHARSET utf8
and it is still possible to change through htaccessAddDefaultCharset utf-8
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question