Roundcube Community Forum

 

BUG: folders with non-ASCII chars shown incorrectly

Started by Borszczuk, March 10, 2010, 04:35:55 AM

Previous topic - Next topic

Borszczuk

[Sorry for posting it here, I do not have Trac account]

Main folder list incorrectly deals with folders containing accented characters in name. I believe this is quick-fix as the same folder is listed correctly when you play with folders in preferences.

Screenshot attached.

alec

Works for me, what versions of RC, PHP, http server?

Borszczuk

PHP 5.2.12
Apache 2 (httpd is irrelevant)
RC 0.3.1

Maybe it does not work for certain characters correctly? Please try creating folder with that name:

ĄĆŚłąśćóż

and let me know what comes out of it.

Borszczuk

I found this in logs/errors:

[08-Mar-2010 07:02:10 +0100]: PHP Error: Could not convert string from 8859-2 to UTF-8. Make sure iconv/mbstring is installed or lib/utf8.class is available. in /program/include/main.inc on line 279 (GET /?_task=mail&_mbox=INBOX&_refresh=1)
[08-Mar-2010 07:02:22 +0100]: PHP Error: Could not convert string from 8859-2 to UTF-8. Make sure iconv/mbstring is installed or lib/utf8.class is available. in /program/include/main.inc on line 279 (GET /?_task=mail&_mbox=INBOX)
[08-Mar-2010 07:02:42 +0100]: PHP Error: Could not convert string from 8859-2 to UTF-8. Make sure iconv/mbstring is installed or lib/utf8.class is available. in /program/include/main.inc on line 279 (GET /)


So maybe this is a culprit? There's no mbstring on that machine, but since it displays folders correctly in personal settings window I think this is a bug in the code to require mbstring there if simmilar functionality works fine without in other place.

dshepherd

I have just tried creating a folder with that name and it displays correctly in both the main folder list and the folder settings list. The issue must be with your server setup.

Borszczuk

I will investigate further over the weekend - yet I any ideas why it's fine in prefs and wrong in main folder list?

Also, if you are aware (or anyone who knows sources better than me), which method/function is responsible for displaying folder lists in both places - that would help me with debugging.