Can't convert message body when html meta tag charset name includes UNDERBAR(_) #1717

rcubetrac opened this Issue Aug 20, 2008 · 4 comments

1 participant


Reported by alping on 20 Aug 2008 19:54 UTC as Trac ticket #1485287

In Roundcube 0.2 alpha-1, roundcube fails to render message body that encoded by ks_c_5601-1987 charset.(ks_c_5610-1987 is supported by Roundcube. See ticket:1484380 )

Because Regular Expression used by 'rcmail_print_body function' for charset name is '[source:tags/roundcubemail/v0.2-alpha/program/steps/mail/ ).
So RoundCube can't find 'ks_c_5601-1987 charset', and can't replace it to 'RCMAIL_CHARSET'(in my case, UTF-8 ).

Instead of 'UTF-8', RoundCube changes meta tag charset name to 'UTF-8_c_5601-1987'. This is Wrong Charset. DOMDocument Object can't understand it(this is used in washhtml, source:tags/roundcubemail/v0.2-alpha/program/lib/washtml.php#L188), and fails to render them.

To fix it, I think '[a-z0-9-](a-z0-9-]'(See)' will be replaced with '[a-z0-9-_]'.

Keywords: ks_c_5601-1987, charset


Comment by @alecpl on 21 Aug 2008 06:09 UTC

Fixed in 80c1eb7


Owner changed by @alecpl on 21 Aug 2008 06:09 UTC

=> none


Milestone changed by @alecpl on 21 Aug 2008 06:09 UTC

later => 0.2-beta


Status changed by @alecpl on 29 Aug 2008 18:07 UTC

new => closed

@rcubetrac rcubetrac closed this Aug 29, 2008
@rcubetrac rcubetrac added this to the 0.2-beta milestone Mar 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment