6.0.0-beta1
7/26/25

[#3732] Encoding columns names
Summary Encoding columns names
Queue Turba
Queue Version 2.1
Type Bug
State Resolved
Priority 1. Low
Owners
Requester mail (at) iceberg (dot) pl
Created 04/03/2006 (7054 days ago)
Due
Updated 05/02/2006 (7025 days ago)
Assigned 04/08/2006 (7049 days ago)
Resolved 05/02/2006 (7025 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/02/2006 12:44:52 PM Jan Schneider Comment #5
State ⇒ Resolved
Reply to this comment
No useful feedback. I merged this anyway, it will be in Turba 2.1.1.
04/25/2006 04:25:18 AM Chuck Hagenbuch Comment #4 Reply to this comment
Same problem exists in a large number of preference forms like
identity selection when used with Umlauts or other special chars.
I put an unescape() instead decodeURIComponent() in the templates to
try to fix it for me, but have only tried this with Firefox.
Did you try the patch that Jan linked to?
04/19/2006 05:45:37 PM andre (at) abtime (dot) de Comment #3 Reply to this comment
columns[0][9] = ['title', decodeURIComponent('Tytu%B3'), false, null];

Under Firefox JS interpreter barfs and stops analyzing column[][]
declarations from here.
Same problem exists in a large number of preference forms like 
identity selection when used with Umlauts or other special chars.

I put an unescape() instead decodeURIComponent() in the templates to 
try to fix it for me, but have only tried this with Firefox.
04/08/2006 09:33:51 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
04/03/2006 05:43:44 PM mail (at) iceberg (dot) pl Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Encoding columns names
Queue ⇒ Turba
Reply to this comment
In file templates/prefs/columnselect.inc, line 20 there is something 
like that:

$js .= "columns[$source_count][$column_count] = ['$column', 
decodeURIComponent('" . rawurlencode($attributes[$column]['label']) . 
"'), $marked, " . (($marked === 'true') ? $selected[$column] : 'null') 
. "];\n";

Now when I am using language different than English (Polish for 
example) and column names are localized, what decodeURIComponent() JS 
function is given is an invalid encoded URI - according to W3C 
standard it is probably forbidden to use non UTF-8 characters.

For example, when Polish language is chosen, following JS code will be 
generated:



columns[0][9] = ['title', decodeURIComponent('Tytu%B3'), false, null];



Under Firefox JS interpreter barfs and stops analyzing column[][] 
declarations from here.


Saved Queries