I have used many foreign spaces, and many of them can directly install GBK programs. The one I tried the most was DZ. However, the space I bought uploaded When I tried to install DZ of GBK, the result was garbled . I was troubled for a few days and was ready to give up.
However, someone told me the day before yesterday that there was no special registration for Hubei people traveling to Guangdong, so it would be very dangerous to put it in the western space! I started to get scared. After thinking about it, I decided to forget it and just put it in a foreign space. The first choice is of course the one I bought. Although I have been using it for free, it is still a bit scary.
Looking at this spatial database, it should be supported by GBK, but why is the DZ that transmits GBK garbled code? I sent a message to Space KF to ask questions. The response there was very fast. They replied to me quickly and referred me to several departments to solve the problem. However, I still couldn’t solve it according to their method. Do I have to change the current GBK Convert the forum to UTF8? Then I would be depressed.
But in the end, the problem was solved by me! Ha ha! Now, without further ado, I will tell you the process I did. It is actually very simple and can be solved. I hope friends who have encountered the same problem as me can use it as a reference.
What we need to do is to make small changes to config.inc.php in the DZ installation program to be uploaded, and add below <?php

@header(‘Content-Type: text/html; charset=GBK);

Note that for the green part, you can change it to gb2312, or UTF8, depending on your space and program conditions. Mine is GBK.
Of course, this is just the installation program. I am doing a complete transfer of the forum, including ucenter, bbs, and uhome. Before uploading, I added the above statement to the configuration file of each program, and it was OK. It bothered me a few times. The daily garbled problem has finally been solved! (Demonstration: www.hb-world.cn went abroad again)


Hong Kong/United States/Domestic High Speed ​​VPS

postid
15675

Leave a Reply