search

Home  >  Q&A  >  body text

php Chinese garbled code

The wampserver version used for the service is 2.5
php version 5.5.12
The database is oracle 12c
Problem: The same project, the same code, the same database, the above environment is also the same, Chinese garbled characters appear on a computer, are they everywhere in Chinese? ? ? ? ? , the other one has no problem. What is the reason

滿天的星座滿天的星座2791 days ago824

reply all(3)I'll reply

  • 为情所困

    为情所困2017-05-18 10:49:31

    Using utf8 encoding uniformly will not have this problem.

    reply
    0
  • 怪我咯

    怪我咯2017-05-18 10:49:31

    It may be that the default encoding of the browsers on the two computers is different. It’s better to use utf8 uniformly, so cool

    reply
    0
  • 怪我咯

    怪我咯2017-05-18 10:49:31

    You mean it looks garbled in the IDE??? Take a look at your file encoding and how to open it in the IDE

    reply
    0
  • Cancelreply