login about faq

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 (http://www.fileformat.info/info/unicode/char/1f463/index.htm)

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?

asked Dec 14 '15 at 10:14

marcin_synak's gravatar image


edited Dec 14 '15 at 10:23

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Dec 14 '15 at 10:14

Seen: 1,518 times

Last updated: Dec 14 '15 at 10:23

powered by OSQA