X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fical.inc.php;h=792e860b26861f1f73171356c498bcf74a5d59c2;hb=2d967f8c610f8330b31f73443bc1c14f08648d30;hp=034418244ab83873fccacb3d757752ac44cabeef;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/include/ical.inc.php b/include/ical.inc.php index 0344182..792e860 100644 --- a/include/ical.inc.php +++ b/include/ical.inc.php @@ -27,9 +27,7 @@ function display_ical($param) { $txt .= ';'.$param['param']; if (isset($param['value'])) { if ($txt) $txt .= ':'; - $txt .= utf8_encode( - preg_replace('/[,;:]/', '\\\\$0', - preg_replace("/(\r\n|\r|\n)/", '\n', $param['value']))); + $txt .= preg_replace('/[,;:]/', '\\\\$0', preg_replace("/(\r\n|\r|\n)/", '\n', $param['value'])); } $length = strlen($txt); $endline = "\n"; @@ -39,4 +37,5 @@ function display_ical($param) { $folded_txt .= $endline.' '.substr($txt, $i, $maxchars - 1); return $folded_txt; } +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>