Archived Forum Post

Index of archived forum posts


Email.QEncodeString does not work properly with some unicode characters

Dec 14 '15 at 10:23

We are using latest version of chilkat-x64. NuGet package in our .NET 4.5 application written in C#.

Example code:

var encoded = new Email().QEncodeString("👣", "utf-8");

The footprints is a 4-byte UTF-8 character (

What did I get?


What did I expect?


For some reason, the QEncodeString method does not recognize the character properly and encodes it as 6-byte string that fits "CESU-8" encoding (?) and not UTF-8.

I've checked and such code:

var bytes = System.Text.Encoding.UTF8.GetBytes("👣");

returns expected values (0xF09F91A3).

We use QEncodeString to produce subjects for our emails. Because of the problem described above, some unicode characters are not displayed properly in email clients.

Are we doing something wrong?