[Tickets #7781] Folder names in the folder list are displayed in wrong encoding

bugs at horde.org bugs at horde.org
Mon Dec 15 17:52:17 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7781
------------------------------------------------------------------------------
  Ticket             | 7781
  Created By         | leva at ecentrum.hu
  Summary            | Folder names in the folder list are displayed in wrong
                     | encoding
  Queue              | IMP
  Version            | 4.3.2
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
+New Attachment     | problem_preview.png
------------------------------------------------------------------------------


leva at ecentrum.hu (2008-12-15 12:52) wrote:

The left-side folder list has some folders, whos names contains  
localized characters. This is displayed correctly when I select the  
"English (American,Canadian,British)" language on the login page from  
the dropdown menu. But when I choose any other locale (but let's say  
now I choose my own locale, which is "Magyar" (Hungarian)), the  
folders won't display the correct characters. It's like this:

Folder name with "English (*)" locale:
"Ügyfél"

Folder name with "Magyar" locale:
"&ANw-gyf&AOk-l"

The latter is the same UTF-7 displaying as with the folder's name on  
the filesystem:
# ls -1 user/Maildir/
[...]
.&ANw-gyf&AOk-l/
[...]

I have configured the php apache module to use mbstring, and I have  
installed and am using the libiconv library with php.

$ php -i |fgrep mbstring
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value
$ php -i |fgrep iconv
Registered Stream Filters => string.rot13, string.toupper,
string.tolower, string.strip_tags, convert.*, consumed,convert.iconv.*,
zlib.*
iconv
iconv support => enabled
iconv implementation => libiconv
iconv library version => 1.11
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

It's like that IMP doesn't even try to convert the folder names,  
because it is displayed in the "native" way, exactly the same as on  
the filesystem.





More information about the bugs mailing list