Encoding conversion moved to OC_Contacts_VCard::decodeProperty in commit 95cc9730aa49963a69e46154b0cba19232219d2e
This commit is contained in:
parent
8af53829d5
commit
c75f9f9397
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue