Phpwamp garbled a key to solve, PHP garbled general solution/website garbled a variety of reasons for analysis

Source: Internet
Author: User
Tags zend

All the reasons that cause the page garbled, I divide it into the following five categories

1, the server forced encoding caused by garbled (This garbled behavior: usually only cause a PHP version garbled (because the default configuration is different), we recommend the use of Phpwamp built-in common tools Universal garbled Repair device , the fix can solve a variety of garbled cases with one click)

2, the page encoding Declaration and the page document itself is encoded by different garbled characters. (This type of garbled reason behind the analysis video explanation)
3, the Database encoding and page encoding different caused by garbled (only need to unify the code to display the normal).

4, not installed Zend caused by garbled, install Zend extension can, Phpwamp site management by default installed Zend extension.

5, Ajax to pass the Chinese caused by garbled, Ajax only support UTF-8 encoded Chinese, in the transfer of data before the Chinese transcoding into utf-8 can be.


650) this.width=650; "src=" Https://s2.51cto.com/oss/201711/05/bf68d690a18afcc8b678acb25339f5c5.png "title=" 1.png " alt= "Bf68d690a18afcc8b678acb25339f5c5.png"/>

Phpwamp garbled Fix (this hotfix is available for all PHP integrated environments and self-installing PHP environments)

This PHP garbled fix can solve a variety of reasons caused by garbled, can also solve the PHP environment caused by the page garbled, not normal display,
and <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/> Encoding declaration does not take effect caused by garbled characters.


The following is a garbled hotfix detailed use procedure

650) this.width=650; "src=" Https://s1.51cto.com/oss/201711/05/881dbf8ca8064f4a389b8e9b81fb8560.png "title=" 2.png " alt= "881dbf8ca8064f4a389b8e9b81fb8560.png"/>

enter the path of a garbled PHP version file, such as the location of the PHP version you are currently using D:\Lccee\PHPWAMP_IN1\phpwamp\server\php-nts-7.1.5 , enter post-point repair



After clicking on the fix, the encoding selection will appear, then the encoding used by your website itself, and the Web service can be restarted after repair.

650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/05/a0c8fded912da57403c03809ae8239c4.png "title=" 5.png " alt= "A0c8fded912da57403c03809ae8239c4.png"/>

If the page encoding declaration and the page document itself encoding different causes of garbled characters do not apply to this function

Garbled analysis video about page encoding declaration and the encoding of the page document itself

51CTO College garbled video Analysis tutorial: http://edu.51cto.com/lesson/id-105599.html







This article is from the "Lccee" blog, make sure to keep this source http://lccee.blog.51cto.com/10514884/1979096

Phpwamp garbled a key to solve, PHP garbled general solution/website garbled a variety of reasons for analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.