This section describes how to configure PHP to load php_mbstring.dll to support multibyte string functions for UTF-8 encoding.
PHP built-in string functions does allow you to use PHP string variables to store Chinese character strings in UTF-8, GB18030, or Bug5
encoding. But if you want manipulate, like trim, split, substring, count, etc., you need treat them as binary strings of encoded bytes,
not characters.
If you want to manipulate Chinese character strings as characters, you need load the PHP extension module, php_mbstring.dll.
This tutorial shows you how to load and config php_mbstring.dll for UTF-8 encoding.
1. Check the PHP configuration file, \local\php\php.ini. If not exist, copy it from \local\php\php.ini-dist:
There are many other mbstring settings in the configuration file. You can leave them as is, because they do not affect the basic multibyte fucntions.
We will review them later in this book.