Welcome Guest, Not a member yet? Register   Sign In
Email header and q-encoding


In order to use accents in my email header subject line, I try to q-encode the following string:
=?UTF-8?q?A bient=C3=94t?=

c394 being the hex value for ô.

I can't get the character to display correctedly. Can someone please let me know what I am doing wrong ?
I use standard CodeIgniter Email class.

Thanks for any help,



After some extensive googling, I found that workaround using base 64 encoding:
$this->email->subject('=?UTF-8?b?' .base64_encode('A bientôt').'?=');


[eluser]The Wizard[/eluser]
it indeed helped with my subject not being encoded issue.

thank you very very much christophe2 !

Theme © iAndrew 2016 - Forum software by © MyBB