[Svn] [roundcube/roundcubemail] 0b385d: Skip iconv for problematic ISO-2022-JP strings (#...

GitHub noreply at github.com
Mon Mar 6 09:22:58 CET 2017

  Branch: refs/heads/master
  Home:   https://github.com/roundcube/roundcubemail
  Commit: 0b385dc94667f6037c0b99c6dd272dd93246e25f
  Author: Shin Kojima <shin at kojima.org>
  Date:   2017-03-06 (Mon, 06 Mar 2017)

  Changed paths:
    M program/lib/Roundcube/rcube_charset.php
    M tests/Framework/Charset.php

  Log Message:
  Skip iconv for problematic ISO-2022-JP strings  (#5668)

We sometimes get broken character encodings such as:
Subject: =?iso-2022-jp?B?GyRCLWo7M3l1OSk2SBsoQgo=?=
This actually is not a strict ISO-2022-JP string, but a CP50220 string
that is a variant of ISO-2022-JP with extended characters proposed by
Microsoft. Iconv can not handle these encodings well.

More information about the svn mailing list