[kronolith] ISO-8859-1: exporting calendar containing french accents

Patrick ABIVEN patrick.abiven at apitech.fr
Fri Mar 9 14:25:54 UTC 2007


Hello
We are using ISO-8859-1 (in NLS.php), and exporting calendar containing events with french accents. In the .ics file, the french accents are kept with no specific encoding (the .ics file is not utf-8). So when importing this file into another calendar, it will produce events with accents transformed.
 
A workaround we found, it to force an utf-8 transformation when exporting the calendar.
/lib/Horde/iCalendar.php, in _exportvData() function. So the exported .ics file is utf-8 encoded.
 
$value = $attribute['value'];
+ if ($name =='LOCATION' || $name == 'SUMMARY' || $name == 'DESCRIPTION' || $name == 'CATEGORIES') {
+ $value = String::convertCharset($value, NLS::getCharset(), 'utf-8');
+ }
switch ($name) {
...
Thanks for any advise.
Regards
Patrick
 


More information about the kronolith mailing list