[Tickets #3732] NEW: Encoding columns names

bugs@bugs.horde.org bugs at bugs.horde.org
Mon Apr 3 10:43:44 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3732
-----------------------------------------------------------------------
 Ticket             | 3732
 Created By         | mail at iceberg.pl
 Summary            | Encoding columns names
 Queue              | Turba
 Version            | 2.1
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


mail at iceberg.pl (2006-04-03 10:43) wrote:

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.





More information about the bugs mailing list