login about faq

We are using latest version of chilkat-x64.9.5.0.54 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?

"=?utf-8?Q?=ED=A0=BD=ED=B1=A3?="

What did I expect?

"=?utf-8?Q?=F0=9F=91=A3?="

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

marcin_synak
32

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

By RSS:

Answers

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

Tags:

×184
×17
×11

Asked: Dec 14 '15 at 10:14

Seen: 383 times

Last updated: Dec 14 '15 at 10:23

powered by OSQA