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

[eluser]christophe2[/eluser]
Hello,

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,

Christophe
#2

[eluser]christophe2[/eluser]
Hello,

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

Christophe
#3

[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