How to solve the problem of garbled codes in flex php
This article introduces you how to solve the problem of flex php Chinese garbled code, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
Flex php Chinese garbled solutions: 1, in the php header to add "header (" Content-Type:text/html;charset=utf-8 ");"; 2, change the zend-studio file encoding format.
This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.
How to solve the problem of garbled codes in flex php?
Garbled interaction between PHP and flex
There are several reasons for this:
First, the content in php is not encoded in utf-8. You can add header ("Content-Type:text/html;charset=utf-8") to the php header.
Second, the php file itself is not utf-8 encoded, which can change the file encoding format of zend-studio. The specified utf-8 method is: windw- > preference- > General- > Workspace- > Text file encoding, select utf-8.
On how to solve the problem of flex php Chinese garbled to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.