Archived Forum Post

Index of archived forum posts


Encoding bug in 7bit mail for FetchSingleAsMimeAsync

Dec 27 '16 at 03:14

I'm getting mail data with FetchSingleAsMimeAsync. There are some mails which say

Content-transfer-encoding: 7bit

in their header. But this isn't the case as they have so-called "high ascii" characters in the body. The Chilkat plugin GETS the data as WindowsANSI but DEFINES the encoding as UTF8. When I reverse this I get the correctly encoded data:

currentBody = currentBody.ConvertEncoding(Encodings.WindowsANSI)
currentBody = currentBody.DefineEncoding(Encodings.UTF8)

This usually is a big no-no for encodings but here it unscrambles the data. I have the workaround in place. But I know from a similar occurrence of this problem that changing the encoding takes a long time.

Xojo 2016r4, Mac OS 10.11.6, Chilkat plugin from 23.06.2016


Beatrix Willius