[RCD] Could not convert string from GBK to UTF-8

A.L.E.C alec at alec.pl
Fri Jun 3 18:53:14 CEST 2011

W dniu 03.06.2011 16:08, Mirko Buffoni wrote:
> The problem is in the subject, so I trimmed the email to it's minimal

> Subject: =?gb2312?B?TnVvdmUgZGlzcG9zaXppb25pIHJlbGF0aXZlIGFsbGUgdmVuZGl0ZQ==?=
>          =?gb2312?B?IHN0cmFvcmRpbmFyaWUsIHB1YmJsaWNpdOAgc3VpIHByZXp6aSBlIA==?=
>          =?gb2312?B?b3JkaW5hbnphIG9yYXJpIGFubm8gMjAxMSBwZXIgaWwgQ29tdW5lIA==?=
>          =?gb2312?B?ZGkgRG9sbw==?=

The subject contains character which is not allowed in GB2312/GBK 
encoding (at least iconv says so). That's why convertion to Unicode 
fails and error is printed. I'm not sure, but maybe we shouldn't print 
this kind of errors to the log.

Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
List info: http://lists.roundcube.net/dev/

More information about the Dev mailing list