]> source.dussan.org Git - nextcloud-server.git/commitdiff
Encoding conversion moved to OC_Contacts_VCard::decodeProperty in commit 95cc9730aa49...
authorThomas Tanghus <thomas@tanghus.net>
Mon, 11 Jun 2012 20:05:15 +0000 (22:05 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 11 Jun 2012 20:14:21 +0000 (22:14 +0200)
apps/contacts/import.php

index 9d5504563fd7c0f3c3850942c851da534ce6df4e..0ee35f9fd81f094e54fa94950f98cba648e7deee 100644 (file)
@@ -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