Snippet Name: Send Unicode Response From PHP
Description: Send back text in Unicode from PHP
Comment: (none)
Language: PHP
Highlight Mode: PHP
Last Modified: March 16th, 2009
|
//The default charset depend on the php.ini settings.
// PHP's built-in default is text/html
default_mimetype = "text/html"
// default_charset = "iso-8859-1"
// and also mbstring values:
// mbstring.language = Neutral; //Set default language to Neutral(UTF-8) (default)
// mbstring.internal_encoding = ISO-8859-2; //Set default internal encoding to UTF-8
// mbstring.encoding_translation = On; //HTTP input encoding translation is enabled
// mbstring.http_input = auto; //Set HTTP input character set dectection to auto
mbstring.http_output = ISO-8859-2; //Set HTTP output encoding to UTF-8
// mbstring.detect_order = auto; //Set default character encoding detection order to auto
// mbstring.substitute_character = none; //Do not print invalid characters
// default_charset = ISO-8859-2; //Default character set for auto content type header
|