Forum Moderators: coopster

Message Too Old, No Replies

using mbstring

proper encoding using mbstring

         

mjasra23

10:56 pm on Jul 19, 2007 (gmt 0)

10+ Year Member



We are trying to use mbstring in an .ini file to override php's mail() function.

Our contact form often gets different languages (ie Russian) inserted into it and then once emailed the Russian text moves through the hosting company's email servers, and gets scrambled when it reaches us. I was told to add this to the php.ini file, however the Russian still appears scrambled:

[mbstring]
mbstring.language = Neutral
mbstring.internal_encoding = UTF-8
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = long;
mbstring.func_overload = 1

Is it the encoding that's incorrect?

eelixduppy

2:11 pm on Jul 23, 2007 (gmt 0)



Check the documentation and look at their php.ini example and try to follow that: [php.net...]

If all else fails, try changing the email's header to the appropriate charset manually:


Content-Type: text/html; charset=koi8-r

mjasra23

4:51 am on Aug 1, 2007 (gmt 0)

10+ Year Member



The documentation looks a lot different from what I've got. Also, is there no way to encode it globally for all languages?