Chinese Characters show up garbled

Ochuse
2010-09-09
2012-09-18
  • Ochuse
    Ochuse
    2010-09-09

    I cant find the correct encoding setting (utf-8) to get Chinese and Umlauts to
    mail correctly. They start fine but arrive as garbled characters instead of
    the intended Chinese or Umlaut. Where to look? -MikeT

     
  • Regor
    Regor
    2010-11-02

    You may use mb_encode_mimeheader() to encode the target string as follows:

    $tmp = mb_encode_mimeheader("中文字", "UTF-8");