Gmail extra quotes if recipient name contains utf-8 chars

Tomi Ihalainen

New Member
If email recipient's name contains non-us-ascii characters, the name is encoded but it contains extra quotation marks around the name.

Example from the source of email sent from MaxBulk Mailer:
To: =?utf-8?Q? "=D0=90=D1=80=D1=86=D0=B8_B=C3=B6nim=C3=A4=C2=B2" ?= <****@gmail.com>

This will cause the recipient's name to show in Gmail like:
"\"Арци Bönimä²\"" <****@gmail.com>

Here is an example from the source of email sent from Apple Mail:
To: =?utf-8?Q?=D0=90=D1=80=D1=86=D0=B8_B=C3=B6nim=C3=A4=C2=B2?= <****@gmail.com>

This way the recipient's name shows correctly in Gmail:
Арци Bönimä² <****@gmail.com>

This is a minor bug but I've received some complaints about it from my recipients. In Finland many names contains non-us-ascii characters.
 

Tomi Ihalainen

New Member
Re: Gmail extra quotes if recipient name contains utf-8 char

austing said:
This should help you out. Got this from google help site.

http://support.google.com/mail/bin/answ ... swer=22841
That doesn't have anything to do with my first post. I'm not sending any emails from Gmail.

I'm sending emails from MaxBulk Mailer and it seems there is a bug in handling email recipient names when using non-US-ASCII characters in recipient names. MaxBulk Mailer seems add quotation marks around the encoded recipient name. Those quotation marks shouldn't be there. I wish this could be fixed in future releases.
 

stanbusk

Administrator
Staff member
Re: Gmail extra quotes if recipient name contains utf-8 char

But it looks like it is Google that adds the quotes, right? Or maybe your server?
 

Tomi Ihalainen

New Member
Re: Gmail extra quotes if recipient name contains utf-8 char

stanbusk said:
But it looks like it is Google that adds the quotes, right? Or maybe your server?

No, it looks like it is MaxBulk Mailer that adds the quotes. It happens on all emails, not just Gmail. And I have tested it using different mail servers. Here is another example:

Let's say we are sending email to address like:
√Ö√§√∂ <[email protected]>

This should be UTF8 Q-encoded in email source code like this:
Code:
To: =?utf-8?Q?=C3=85=C3=A4=C3=B6?= <[email protected]>

But the MaxBulk Mailer encodes it like this:
Code:
To: =?utf-8?Q? "=C3=85=C3=A4=C3=B6" ?= <[email protected]>

There are additional whitespace and quote before and after the encoded string. White spaces are not even allowed within the encoded string. More reading:
http://www.freesoft.org/CIE/RFC/1522/index.htm
 

stanbusk

Administrator
Staff member
Re: Gmail extra quotes if recipient name contains utf-8 char

Can you give me a sample recipient so I can try to reproduce?
 
Top