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 |
State ⇒ Resolved
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.
Under Firefox JS interpreter barfs and stops analyzing column[][]
declarations from here.
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.
State ⇒ Feedback
http://cvs.horde.org/diff.php/turba/templates/prefs/columnselect.inc?r1=1.27&r2=1.28&ty=u
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Encoding columns names
Queue ⇒ Turba
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.