MySQL 4.1 Coding Problem _php Tutorial

Source: Internet
Author: User
The following is a very boring thing, full of a lot of various coding, conversion, client, server side, connection ... Well, I don't want to see it myself, but I think it's a little bit of a point to write down, for four reasons:

      MySQL 4.1 's support for multiple languages has changed a lot (which leads to problems);
      Although most of the places (including personal use and hosting providers), MySQL 3 is still dominant, but MySQL 4.1 is the official MySQL recommended database, already have the host provider started to provide and will be more and more;
      Many PHP programs use MySQL as the default database management software, but they generally do not distinguish between MySQL 4.1 and 4.1 versions of the difference, generally referred to as "MySQL 3.xx.xx above version" to meet the installation requirements;
      Because latin1 in many places (below will describe in detail where specifically where) as the default character set, the success of the many PHP programs to deceive the developers and users, to cover up in the Chinese language environment will appear in the problem;

To put it simply, MySQL's own changes and the use of MySQL's PHP program to ignore this, causing problems and complications, and because most users use English, so that the problem is not taken seriously. The PHP program mentioned here, mainly in terms of WordPress.

Principles supported by the MySQL 4.1 character set


MySQL 4.1 Specifies that the character set can be refined to a machine installed on MySQL, where a database, one of the tables, one of the columns, should use what character set. However, traditional WEB programs do not use a complex configuration when creating databases and datasheets, and they use the default configuration, so where does the default configuration come from?

      When compiling MySQL, a default character set is specified, and the character set is latin1;
      When you install MySQL, you can specify a default character set in the configuration file (My.ini), and if not specified, the value inherits from the compile-time specified;
      at this time

      http://www.bkjia.com/phpjc/631020.html www.bkjia.com true http://www.bkjia.com/PHPjc/631020.html techarticle The following is a very boring thing, full of a lot of different encoding, conversion, client, server side, connection uh, I don't want to see it, but think, ...

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.