V
V
Vadim2015-11-06 09:57:16
PHP
Vadim, 2015-11-06 09:57:16

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

2 answer(s)
S
Sergey Zelensky, 2015-11-06
@J01

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 htaccess
AddDefaultCharset utf-8

H
Helga25, 2019-10-30
@Helga25

I had this problem after installing the counters, when I moved the utf8 encoding back to the beginning, everything worked fine)
Well, maybe you have another reason ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question