How to send multilingual text in mail subject

February 8, 2008

It took a while for me to understand that you can actually send multilingual characters in Subject of mail. This is easy to integrate if you are hardcoding it within the code, but if you are taking it from the user then you need to make certain changes.

PHP_VALUE mbstring.language    Neutral
PHP_VALUE mbstring.internal_encoding UTF-8
PHP_VALUE mbstring.encoding_translation     On
PHP_VALUE mbstring.http_input auto
PHP_VALUE mbstring.http_output UTF-8
PHP_VALUE mbstring.detect_order    auto
PHP_VALUE mbstring.substitute_character    none
PHP_VALUE default_charset UTF-8

Use mbstring_mail();

Hope this could help somebody.