It is well known that GET in PHP cannot deliver Chinese characters, and the delivered data are usually garbled characters. However, sometimes we need to deliver Chinese characters. Take the recent project "Sharing/Collection" of Bangkejia as an example. The author encountered such a problem when writing a PHP program. After the Chinese title was transferred to Sina Collection, it became garbled.
How to solve this problem? Us:
Normal writing (garbled characters):
Copy to ClipboardChange to the following code (normal):
Copy to ClipboardNow that the problem has been solved, don’t forget to check out Bangke Home’s new project - Share & Collection. http://www.bkjia.com/res/share/