Summary - Fetching Chinese Text from Database to Web

This section provides a summary on how to fetch Chinese text from MySQL database and send it to a Web page through Apache.

Retrieving Chinese characters from MySQL database and display them on Web pages requires that:

In the PHP Web page script, we have to:

In addition to UTF-8, GBK and Big5 are also supported by MySQL server and Web browsers.

Last update: 2015.

Table of Contents

 About This Book

 PHP Installation on Windows Systems

 Integrating PHP with Apache Web Server

 charset="*" - Encodings on Chinese Web Pages

 Chinese Characters in PHP String Literals

 Multibyte String Functions in UTF-8 Encoding

 Input Text Data from Web Forms

 Input Chinese Text Data from Web Forms

 MySQL - Installation on Windows

 MySQL - Connecting PHP to Database

 MySQL - Character Set and Encoding

 MySQL - Sending Non-ASCII Text to MySQL

Retrieving Chinese Text from Database to Web Pages

 Steps and Application Components Involved

 Fetching ASCII Text from Database to Web

 Fetching Chinese Text from Database to Web

 Fetching Chinese Text from Database to Web in UTF-8

 Fetching Chinese Text from Database to Web in GBK

 Fetching Chinese Text from Database to Web in Big5

Summary - Fetching Chinese Text from Database to Web

 Input Chinese Text Data to MySQL Database

 References

 PDF Printing Version