6.0.0-git
2019-12-12

[#14963] Special Slovenian characters break filters
Summary Special Slovenian characters break filters
Queue Ingo
Queue Version FRAMEWORK_5_2
Type Bug
State Feedback
Priority 1. Low
Owners
Requester deni (at) guru (dot) si
Created 2019-11-13 (29 days ago)
Due
Updated 2019-11-13 (29 days ago)
Assigned 2019-11-13 (29 days ago)
Resolved
Milestone
Patch No

History
2019-11-13 14:07:46 deni (at) guru (dot) si Comment #7 Reply to this comment
Content-Type: text/html; charset=iso-8859-1
Is this what the server returns in the reponse headers when using 
Ingo? This is wrong, we only support UTF-8 for input and output 
since ages. Are you sure you are using a recent Ingo version?
Ah, sorry, was to quick on response and simply curl-ed the main page...

I have checked in browser and it is in fact UTF-8:

Content-Type: text/html; charset=UTF-8
2019-11-13 14:02:20 Jan Schneider Comment #6
State ⇒ Feedback
Priority ⇒ 1. Low
Reply to this comment
Content-Type: text/html; charset=iso-8859-1
Is this what the server returns in the reponse headers when using 
Ingo? This is wrong, we only support UTF-8 for input and output since 
ages. Are you sure you are using a recent Ingo version?
2019-11-13 13:07:13 deni (at) guru (dot) si Comment #5 Reply to this comment
Works fine here: ?, ?, ?, ?, ?, ?
Apparently not. I can create rules with these characters though and 
they show up fine in the filterrules too. What is the default 
characterset of your webserver?
Hmm

Content-Type: text/html; charset=iso-8859-1

MariaDB has utf8, php.ini has utf8.

Is it possible to change the charset in Horde somewhere, or are we 
better to fix it globally/locally for this virtualhost?
2019-11-13 12:22:31 build+horde (at) de-korte (dot) org Comment #4 Reply to this comment
Works fine here: ?, ?, ?, ?, ?, ?
Apparently not. I can create rules with these characters though and 
they show up fine in the filterrules too. What is the default 
characterset of your webserver?
2019-11-13 12:20:54 build+horde (at) de-korte (dot) org Comment #3 Reply to this comment
Works fine here: ?, ?, ?, ?, ?, ?
2019-11-13 08:31:06 deni (at) guru (dot) si Comment #2 Reply to this comment

[Show Quoted Text - 29 lines]
Looks like this site also encodes special Slovenian characters to ?????...

2019-11-13 08:26:21 deni (at) guru (dot) si Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 3. High
Summary ⇒ Special Slovenian characters break filters
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ No
Reply to this comment
Hi!

We have a problem on our Horde install, with filters containing 
Slovenian characters (????).

Basically, if one uses special character in comparator, file name, or 
filter name, Horde/Ingo does not save it as intended.

When looking at ingo.script file of the user, this is what we get:

- If the filter name is "?", ingo saves the name of the filter as "?"
- If comparator is containing "?", ingo saves it to the file ok, but 
web interface displays empty comparator
- We have tried to enable utf8 in /etc/horde/ingo/backends.php, but 
only change that happens is that "fileinto" (filename is "?-test"), 
goes from "fileinto "INBOX/?-test";" to "fileinto "INBOX/&AQ0--test";"


As filters with special characters are not displayed as they should be 
inside the web filter editor, when you try to delete a filter, it 
deletes one before that and breaks the whole filterlist, after you try 
to delete all of them, user ends up with broken list containing only 
one filter that can't be opened.

If anyone can check this out, it would be highly appreciated.

Best regards, Deni


Saved Queries