Skip to content
Snippets Groups Projects
Commit c75f9f93 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Encoding conversion moved to OC_Contacts_VCard::decodeProperty in commit...

Encoding conversion moved to OC_Contacts_VCard::decodeProperty in commit 95cc9730aa49963a69e46154b0cba19232219d2e
parent 8af53829
No related branches found
No related tags found
No related merge requests found
......@@ -63,13 +63,13 @@ foreach($lines as $line){
if(strtoupper(trim($line)) == 'BEGIN:VCARD'){
$inelement = true;
} elseif (strtoupper(trim($line)) == 'END:VCARD') {
$card[] = str_replace('=0D=0A', '\n', iconv(mb_detect_encoding($line, 'UTF-8, ISO-8859-1'), 'utf-8', $line));
$card[] = $line;
$parts[] = implode($nl, $card);
$card = array();
$inelement = false;
}
if ($inelement === true && trim($line) != '') {
$card[] = str_replace('=0D=0A', '\n', iconv(mb_detect_encoding($line, 'UTF-8, ISO-8859-1'), 'utf-8', $line));
$card[] = $line;
}
}
//import the contacts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment