6.0.0-beta1
7/23/25

[#4421] templates/calendars.inc: when using ISO-8859-1
Summary templates/calendars.inc: when using ISO-8859-1
Queue Kronolith
Queue Version 2.1.2
Type Bug
State Resolved
Priority 1. Low
Owners
Requester patrick.abiven (at) apitech (dot) fr
Created 09/15/2006 (6886 days ago)
Due
Updated 09/17/2006 (6884 days ago)
Assigned
Resolved 09/17/2006 (6884 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/17/2006 07:59:37 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
This was already fixed in CVS and will be in 2.1.3.
09/15/2006 02:25:48 PM patrick (dot) abiven (at) apitech (dot) fr Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ templates/calendars.inc: when using ISO-8859-1
Queue ⇒ Kronolith
Reply to this comment
Hello

Creating a new calendar with a name containing french accents raises 
an issue when we trying to select it in the share dropdownlist.



kronolith/templates/calendars.inc uses rawurlencode() to initialize 
the fields array, and decodeURIComponent() to extract value from this 
array. When the charset is not utf-8, this seems to be incorrect.



Instead of using rawurlencode (), we can use encodeURIComponent():

- "<?php echo rawurlencode($cal->get('name')) ?>,

+encodeURIComponent("<?php echo $cal->get ('name') ?>"),



Thanks for your advises

Regards

Patrick


Saved Queries