Hello, I'm using swift 3.3.2 with php5 on debian linux with unicode locale, smpt on gmail or my own smtp server. All works fine, except that one cyrillic symbol ("и") is replaced with "��" in message header, in message body it looks normal.
This is header, as it shows up in mail client: "востановлен��е пароля" and this is correct header "востановление пароля" .
what can cause this problem ?
Problem with unicode in header
Moderators: Chris Corbyn, General Moderators
Re: Problem with unicode in header
Though pretty experienced in othe rmatters, I am a newbee too at SwiftMailer. So I cannot really help you.
But one thing I can say: for those who want to help you, it seems rather helpful if you mention the correct Unicode value for that charachter (the "mirrored 'N'" -- not knowing its value, I cannot reproduce ot here). after all, the guy who answered my questions so far seems to be an Australian, so not likely to know a Cyrillic-written language.
But one thing I can say: for those who want to help you, it seems rather helpful if you mention the correct Unicode value for that charachter (the "mirrored 'N'" -- not knowing its value, I cannot reproduce ot here). after all, the guy who answered my questions so far seems to be an Australian, so not likely to know a Cyrillic-written language.
Re: Problem with unicode in header
thanks for good idea,the code is 0438
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Problem with unicode in header
I'm afraid this is a known issue with version 3 that has been fixed in version 4.
The workaround in version 3 is to switch to base64 encoding in the headers like this:
The workaround in version 3 is to switch to base64 encoding in the headers like this:
Code: Select all
$message->headers->setEncoding('B');Re: Problem with unicode in header
thanks for workaround Chris