Author Topic: BUG: folders with non-ASCII chars shown incorrectly  (Read 3031 times)

Offline Borszczuk

  • Jr. Member
  • **
  • Posts: 16
BUG: folders with non-ASCII chars shown incorrectly
« on: March 10, 2010, 04:35:55 AM »
[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.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
BUG: folders with non-ASCII chars shown incorrectly
« Reply #1 on: March 10, 2010, 08:18:06 AM »
Works for me, what versions of RC, PHP, http server?

Offline Borszczuk

  • Jr. Member
  • **
  • Posts: 16
BUG: folders with non-ASCII chars shown incorrectly
« Reply #2 on: March 11, 2010, 01:08:20 PM »
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.

Offline Borszczuk

  • Jr. Member
  • **
  • Posts: 16
BUG: folders with non-ASCII chars shown incorrectly
« Reply #3 on: March 11, 2010, 01:24:57 PM »
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.

Offline dshepherd

  • Jr. Member
  • **
  • Posts: 87
BUG: folders with non-ASCII chars shown incorrectly
« Reply #4 on: March 12, 2010, 05:30:30 AM »
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.

Offline Borszczuk

  • Jr. Member
  • **
  • Posts: 16
BUG: folders with non-ASCII chars shown incorrectly
« Reply #5 on: March 15, 2010, 06:40:07 PM »
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.