The current email is in UTF-8. It's not working on Shift-JIS.
How can I convert from UTF-8 to SHIFT-JIS. The solution needs to be a PHP solution.
This is what I have tried so far
$subject = mb_convert_encoding ($subject, "JIS", "SJIS");
$subject = base64_encode ($subject);
$subject = "=?iso-2022-jp?B?" . $subject . "?=";
You can convert utf-8 to shift-JIS by doing this:
$str = mb_convert_encoding($str, "SJIS", "UTF-8");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With