Re: [gmime-devel] Decoding UTF-8 headers



On 07/17/2011 08:26 AM, Dirk-Jan C. Binnema wrote:
Hi,

I have some messages which have invalidly encoded fields -- basically fields
incorrectly claiming they are utf8. e.g

   Subject: Re: =?utf-8?B?UGlk5HR0ZWv2IHR59nN05G5uZT8=?=

which causes GMime (at least v 2.4.24) to return non-valid utf8. I worked
around this in my code by checking, and (ugly hack) replacing non-utf8 with
dots, but it'd be nice if GMime could guarantee that whatever it returns is
always valid UTF8.

Ugh, yea, I agree. I was afraid that might happen. Thanks for bringing it to my attention.

Jeff



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]