this is subject in Thai language.
$subject = “หัวข้อของอีเมล์ภาษาไทย UTF-8”
if i just use
$this->email->subject($subject);
subject in email is
หัวข้อ��ทย UTF-8
i have to add encode utf-8 for multi language subject work (refer from http://www.php.net/manual/en/function.mail.php)
then i use this code
'=?UTF-8?B?'.base64_encode($subject).'?='
and send…
subject in email is
=?UTF-8?B?4Lir4Lix4Lin4LiC4LmJ4Lit4LiC4Lit4LiH4Lit4Li14LmA4Lih4Lil4LmM4Lig4Liy4Lip4Liy4LmE4LiX4LiiIFVURi04?=
but..
i check on system/libraries/Email.php page
comment/remove this line
$subject = $this->_prep_q_encoding($subject);
and send again.
it’s work!
so.. i don’t know what’s that line for?
for make subject utf-8 won’t work?
is there a way to make it work without mess with ci library?
thank you
