6.0.0-beta1
7/4/25

[#1052] Sidebar, Problem with umlaut (�,�,..) in IE
Summary Sidebar, Problem with umlaut (�,�,..) in IE
Queue Horde Base
Queue Version 3.0
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester mail (at) flobauer (dot) net
Created 01/02/2005 (7488 days ago)
Due
Updated 05/22/2007 (6618 days ago)
Assigned 05/21/2007 (6619 days ago)
Resolved 05/22/2007 (6618 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/22/2007 05:39:06 PM Chuck Hagenbuch Comment #25
State ⇒ Resolved
Reply to this comment
Committed, thanks.
05/22/2007 05:25:38 PM thomas (dot) jarosch (at) intra2net (dot) com Comment #24
New Attachment: horde-test-pcre-tests.patch Download
Reply to this comment
Patch: Add test for PCRE and PCRE utf-8 support in test.php


05/22/2007 04:56:52 PM Chuck Hagenbuch Comment #23 Reply to this comment

[Show Quoted Text - 12 lines]
I'm in favor of a test.php addition with this strategy.
05/22/2007 03:15:17 PM Michael Slusarz Comment #22 Reply to this comment
BTW, this check:

preg_match_all("/(.{1})/su", $var, $m);

was added precisely because the old code (using String functions) did 
not work in several cases.  So a fallback function is most likely out 
of the question.
05/22/2007 02:39:04 PM thomas (dot) jarosch (at) intra2net (dot) com Comment #21 Reply to this comment
But it also returns false if it doesn't match, which is the whole
purpose of preg_match().
It returns (int)0 if it doesn't match and (boolean)false if there's an error.

Also we could use a pattern that always matches like this:



echo "Result: ".preg_match("/.*/u", "test")."\n";



I just disabled utf-8 support again to test it. On the command line I 
have even seen an error message:

"Warning: preg_match(): Compilation failed: this version of PCRE is 
not compiled with PCRE_UTF8 support at offset 0."


05/22/2007 02:24:32 PM Jan Schneider Comment #20 Reply to this comment
But it also returns false if it doesn't match, which is the whole 
purpose of preg_match().
05/22/2007 02:18:57 PM thomas (dot) jarosch (at) intra2net (dot) com Comment #19 Reply to this comment
We could also assume PCRE with utf-8 support is standard by now and
we should add a test to test.php to display a warning if it's not
compiled in.
But how can you test this?
preg_match_all returns FALSE if you specify the "u" pattern modifier 
to enable utf-8 mode.
05/22/2007 02:01:09 PM Jan Schneider Comment #18 Reply to this comment
I was using a PCRE version without utf-8 support and so the following
function call failed:
We could also assume PCRE with utf-8 support is standard by now and
we should add a test to test.php to display a warning if it's not
compiled in.
But how can you test this?
05/22/2007 02:00:39 PM Jan Schneider Comment #17 Reply to this comment
Which charset is your interface using?
ISO-8559-1.

Horde_Serialize::serialize(SERIALIZE_JSON) converts the input to UTF-8 anway.
Correct, JSON data must be UTF-8 encoded.
05/22/2007 01:44:06 PM thomas (dot) jarosch (at) intra2net (dot) com Comment #16 Reply to this comment
I was using a PCRE version without utf-8 support and so the following
function call failed:
We could also assume PCRE with utf-8 support is standard by now and we 
should add a test to test.php to display a warning if it's not 
compiled in.


05/22/2007 01:41:52 PM thomas (dot) jarosch (at) intra2net (dot) com Comment #15 Reply to this comment
Which charset is your interface using?
ISO-8559-1.



Horde_Serialize::serialize(SERIALIZE_JSON) converts the input to UTF-8 anway.

I was using a PCRE version without utf-8 support and so the following 
function call failed:



preg_match_all("/(.{1})/su", $var, $m);



This function is used to split a string into utf-8 characters. I've 
got it working now but maybe we need some kind of fallback code here.
05/22/2007 10:45:40 AM Jan Schneider Comment #14 Reply to this comment
Which charset is your interface using?
05/22/2007 09:20:39 AM thomas (dot) jarosch (at) intra2net (dot) com Comment #13 Reply to this comment
Are you sure this isn't a CSS issue?
As far as I have traced it yet, the folder name get's lost in 
Horde_Serialize::serialize(JSON). I'm currently debugging it.


05/22/2007 08:54:53 AM Michael Slusarz Comment #12 Reply to this comment
I see this bug again with horde cvs-HEAD and imp cvs-HEAD. The folder
name is not displayed at all, but the icon is still clickable. Tested
with Konqueror 3.5.6 and Firefox
Are you sure this isn't a CSS issue?  This same issue crops up time to 
time in DIMP and it always turns out to be an issue with overflow or 
something similar.
05/22/2007 08:51:01 AM thomas (dot) jarosch (at) intra2net (dot) com Comment #11 Reply to this comment
Thanks for reproducing, Jan.

Gunnar can't reproduce it either.



If I switch the Horde_Tree renderer from javascript to HTML, the 
problem is gone.

Maybe it's a charset issue, I use quite an old glibc. I'll try to investigate.



Thomas


05/21/2007 10:01:53 PM Jan Schneider Comment #10 Reply to this comment
Not me.
05/21/2007 06:37:26 PM Chuck Hagenbuch Comment #9
State ⇒ Feedback
Reply to this comment
Can anyone else reproduce this?
05/19/2007 10:08:22 AM thomas (dot) jarosch (at) intra2net (dot) com Comment #8 Reply to this comment
I see this bug again with horde cvs-HEAD and imp cvs-HEAD. The folder 
name is not displayed at all, but the icon is still clickable. Tested 
with Konqueror 3.5.6 and Firefox 1.5.


01/05/2005 02:48:47 PM Jan Schneider Comment #7
State ⇒ Resolved
Reply to this comment
Should be fixed in CVS now. Will be in Horde 3.0.2.
01/05/2005 02:28:15 PM Jan Schneider State ⇒ Assigned
 
01/05/2005 10:03:31 AM mail (at) flobauer (dot) net Comment #6 Reply to this comment
Both have ISO-8859-1 and refresh do not change anything.
01/03/2005 05:56:02 PM Jan Schneider Comment #5
State ⇒ Feedback
Reply to this comment
What charset do the "normal" pages have, what charset does the menu 
have, and does it change after the menu refreshed?
01/03/2005 12:35:02 AM Chuck Hagenbuch Assigned to Jan Schneider
State ⇒ Assigned
 
01/02/2005 02:49:01 PM mail (at) flobauer (dot) net Comment #4 Reply to this comment
Found the Problem:



The label of  the Node with the umlaut was encoded with:

xxx\0äyyy  .... for an "ä"

xxx\0öyyy ... for an "ö" ... and so on, so the umlaut got a prefix 
"\0" (don't know why)



I added to templates/javascript/tree.js on line 319



var re = new RegExp ('\0', 'gi') ;

var label = label.replace(re, '') ;



before:

return '<a' + urlClass + ' href="' + this.nodes[nodeId]['url'] + '"' + 
target + onclick + '>' + label + '</a>';



Dirty hack, but it works .... would be good to find out, why this "\0" 
thing happens.


01/02/2005 12:10:17 PM mail (at) flobauer (dot) net Comment #3 Reply to this comment
No, I think bug 809 is something else.



I found something interesting:

if i create a imap folder in IMP with an umlaut, it is displayed 
correctly in the sidebar and the umlaut "ä" (ae) is encoded in "g&5A-"



if i create the folder in Thunderbird or Outlook, the error occures 
and the "ä" is encoded with "&AOQ-" (seems that IE do not like this 
encoding)
01/02/2005 11:57:57 AM Jan Schneider State ⇒ Feedback
 
01/02/2005 11:57:43 AM Jan Schneider Comment #2 Reply to this comment
Might be a duplicate of bug 809. Please confirm, and if so, find some 
common points of both your  systems.
01/02/2005 11:38:20 AM mail (at) flobauer (dot) net Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ Horde Base
Type ⇒ Bug
Summary ⇒ Sidebar, Problem with umlaut (ä,ö,..) in IE
Reply to this comment
The tree in the sidebar ends at the point,  where an umlaut (like 
ä,ö,ü) in a foldername (eg. imp -> imap foldername) appears.  This 
problem appears only in IE (v. 6), Firefox 1.0 and Opera 7 show the 
correct tree.



Screenshot IE:

http://www.flobauer.net/screenshot_ie.jpg



Screenshot Firefox:

http://www.flobauer.net/screenshot_firefox.jpg


Saved Queries