#101 Two-byte character folder names broke with Thunderbird.

closed-fixed
nobody
None
5
2006-07-30
2004-08-08
novembre
No

If I create a new folder with two-byte characters(ie, Korean) in SM, it is ok with SM but is broken when viewed with the latest Mozilla Thunderbird, or M$ Outlook, and vice versa. Which side is right? SM or Thunderbird?

I've tested with the current stable version and the cvs version of SquirrelMail. Both were same.

Discussion

  • Tomas Kuliavas
    Tomas Kuliavas
    2004-08-13

    Logged In: YES
    user_id=225877

    ThunderBird is right. I suspect that in your case
    SquirrelMail uses 8bit symbols in iso-8858-1 charset.

    Korean symbols are not supported because euc-kr charset
    support was added to php mbstring functions only in php
    4.3.0 and squirrelmail's utf7-imap functions don't use this
    charset. Minimal squirrelmail php requirement is 4.1.x.

    If you don't use Korean translation to enter those letters,
    they are supported only by Russian, Lithuanian, Uighur and
    Farsi translations. These translations should create correct
    utf7-imap formated folder names, if you have php with
    mbstring support.

    If you want fast solution for Korean translation, make sure
    that you have php 4.3+ compiled with --enable-mbstring=all
    and I'll show you place that has to be modified.

    If you want quick solution for English translation - make
    sure that you have php with mbstring support, open
    functions/i18n.php, find $languages array entries that
    describe en_US translation and change charset from
    iso-8859-1 to utf-8.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2004-08-13

    • assigned_to: nobody --> tokul
     
  • novembre
    novembre
    2004-08-14

    Logged In: YES
    user_id=1099692

    I've installed php4-4.3.4 with --enale-mbstring=all.
    Could you tell me what have to be modified?

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2004-08-15

    Logged In: YES
    user_id=225877

    functions/imap_utf7_local.php

    sqimap_mb_convert_encoding function contains test that
    checks for iso-8859-, utf-8 and iso-2022-jp. euc-kr check
    has to be added there.

    // koi8-r and gb2312 can be added only in php 4.3+
    if ( stristr($default_charset, 'iso-8859-') ||
    stristr($default_charset, 'utf-8') ||
    + stristr($default_charset, 'euc-kr') ||
    stristr($default_charset, 'iso-2022-jp') ) {
    if (function_exists('mb_convert_encoding')) {
    return mb_convert_encoding($str, $to_encoding,
    $from_encoding);

    Line with + sign has to be added. Plus sign itself should
    not be added. This enables euc-kr charset support in
    sqimap_mb_convert_encoding function. only Korean translation
    uses it.

    I'll try implementing it without mbstring functions.

    This fixes only Korean translation, if you have php that
    supports mbstring functions with euc-kr charset. Other
    translations might require modifications in
    functions/i18n.php $languages array.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2004-11-15

    Logged In: YES
    user_id=225877

    squirrelmail 1.5.1cvs (functions/imap_utf7_local.php v.1.19)
    contains different implementation that checks if euc-kr is
    supported by mbstring. can you test it in your install?

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2004-11-15

    • labels: 102902 -->
    • milestone: 102172 -->
     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-07-03

    • assigned_to: tokul --> nobody
     
  • Tomas Kuliavas
    Tomas Kuliavas
    2006-07-30

    • status: open --> closed-fixed
     
  • Tomas Kuliavas
    Tomas Kuliavas
    2006-07-30

    Logged In: YES
    user_id=225877

    fixed in 1.4.8cvs