Building Chinese Web Sites using PHP
∟Input Chinese Text Data to MySQL Database
This chapter provides tutorial notes on saving Chinese text into MySQL database through Web forms and retrieved it back to Web pages. Topics include reviewing the communication process; testing with UTF-8, GBK and Big5 encodings.
Steps and Application Components Involved Inputting Chinese Text to MySQL Database in UTF-8 Inputting Chinese Text to MySQL Database in GBK Inputting Chinese Text to MySQL Database in Big5 Summary
Steps and Application Components Involved
Inputting Chinese Text to MySQL Database in UTF-8
Inputting Chinese Text to MySQL Database in GBK
Inputting Chinese Text to MySQL Database in Big5
Summary
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
►Input Chinese Text Data to MySQL Database
References
PDF Printing Version