UTF-8 fixes
[platal.git] / include / vcard.inc.php
index b5aa8a9..01ec339 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -41,7 +41,7 @@ class VCard
 
     function escape($text)
     {
-        return preg_replace('/[,;:]/', '\\\\$0', $text);
+        return preg_replace('/[,;]/', '\\\\$0', $text);
     }
 
     function format_adr($params, &$smarty)
@@ -126,10 +126,10 @@ class VCard
 
         header("Pragma: ");
         header("Cache-Control: ");
-        header("Content-type: text/x-vcard; charset=iso-8859-15");
+        header("Content-type: text/x-vcard; charset=UTF-8");
         header("Content-Transfer-Encoding: 8bit");
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>