/** * Encode a string for vCard * * @param string $string String to encode * @return string String encoded */ function encode($string) { return str_replace(";", "\\;", dol_quoted_printable_encode(utf8_decode($string))); }
/** * \file htdocs/includes/vcard/vcard.class.php * \brief Classe permettant de creer un fichier vcard. * \author Kai Blankenhorn. * \version 2.0 * * Ensemble des fonctions permettant de creer un fichier vcard. */ function encode($string) { //return escape($string); return escape(dol_quoted_printable_encode(utf8_decode($string))); }