utf 8 - Problem encoding with utf-8 -
i referred serhio utf-8 encoding problem , hv been trying whole day different methods searched net :( want show chinese characters in subject lines when received in gmail shows rubbish characters. had tried put
header('content-type: text/html; charset=utf-8');
on top of page not working
i tried add "\r\n" not working
my code below
$mail->charset = 'utf-8'; $mail->body('',$strinv); $mail->subject('"=?utf-8?b?".base64_encode(我的问题)."?=" #'.$inquiry_no);
when received in gmail subject looks : "=?utf-8?b?".base64_encode(è®¢å •ç¡®è®¤)."?=" #00016
i appreciate can me this. thank you.
when fix subject string should this:
=?utf-8?b?russiannnn?=
use echo function debug subject string before call $mail->subject
or do
$ssubject = '=?utf-8?b?' . base64_encode('russian') . '?='; $ssubject = $ssubject . $inquiry_no; $mail->subject($ssubject);
good luck newbie
Comments
Post a Comment