&reftitle.runtime; &extension.runtime; Multi-Byte String configuration options Name Default Changeable mbstring.language NULL PHP_INI_ALL mbstring.detect_order NULL PHP_INI_ALL mbstring.http_input NULL PHP_INI_ALL mbstring.http_output NULL PHP_INI_ALL mbstring.internal_encoding NULL PHP_INI_ALL mbstring.script_encoding NULL PHP_INI_ALL mbstring.substitute_character NULL PHP_INI_ALL mbstring.func_overload "0" PHP_INI_SYSTEM mbstring.encoding_translation "0" PHP_INI_ALL
For further details and definition of the PHP_INI_* constants see ini_set.
Here is a short explanation of the configuration directives. mbstring.language defines default language used in mbstring. Note that this option defines mbstring.interanl_encoding and mbstring.interanl_encoding should be placed after mbstring.language in &php.ini; mbstring.encoding_translation enables HTTP input character encoding detection and translation into internal chatacter encoding. mbstring.internal_encoding defines default internal character encoding. mbstring.http_input defines default HTTP input character encoding. mbstring.http_output defines default HTTP output character encoding. mbstring.detect_order defines default character code detection order. See also mb_detect_order. mbstring.substitute_character defines character to substitute for invalid character encoding. mbstring.func_overloadoverload(replace) single byte functions by mbstring functions. mail, ereg, etc. are overloaded by mb_send_mail, mb_ereg, etc. Possible values are 0, 1, 2, 4 or a combination of them. For example, 7 for overload everything. 0: No overload, 1: Overload mail function, 2: Overload str*() functions, 4: Overload ereg*() functions. Web Browsers are supposed to use the same character encoding when submitting form. However, browsers may not use the same character encoding. See mb_http_input to detect character encoding used by browsers. If enctype is set to multipart/form-data in HTML forms, mbstring does not convert character encoding in POST data. The user must convert them in the script, if conversion is needed. Although, browsers are smart enough to detect character encoding in HTML. charset is better to be set in HTTP header. Change default_charset according to character encoding. &php.ini; setting example &php.ini; setting for <literal>EUC-JP</literal> users &php.ini; setting for <literal>SJIS</literal> users