From 0fbadebe13b13d6da470731df1f055df595c6a89 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 27 Feb 2011 13:30:34 +0000 Subject: Improve vcard import: map more fields, support photo urls, better UTF-16 charset detection --- tests/vcards.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/vcards.php') diff --git a/tests/vcards.php b/tests/vcards.php index 3b8f260c4..ba5ce2bef 100644 --- a/tests/vcards.php +++ b/tests/vcards.php @@ -54,4 +54,12 @@ class rcube_test_vcards extends UnitTestCase $this->assertEqual("Iksiñski", $vcards2[0]->surname, "Detect charset in encoded values"); } + function test_encodings() + { + $input = file_get_contents($this->_srcpath('utf-16_sample.vcf')); + + $vcards = rcube_vcard::import($input); + $this->assertEqual("Ǽgean ĽdaMonté", $vcards[0]->displayname, "Decoded from UTF-16"); + } + } -- cgit v1.2.3