Menu

Unable to import .vcf files containing arabic, chinese characters

Jasmine G.
2012-09-14
2012-09-19
  • Jasmine G.

    Jasmine G. - 2012-09-14

    Hi,
    I'm trying to import .vcf files containing arabic, chinese characters using the VCardEngine class to obtain the vcard information. I've problems to obtain the right encoded values. Supports the VCardEngine parser method this kind of languages?

    VCard example:

    BEGIN:VCARD
    VERSION:3.0
    N;CHARSET=UTF-8:溌剌;元気
    SOUND;X-IRMC-N;CHARSET=UTF-8:ハツラツ;ゲンキ
    TEL;VOICE:0123456789
    TEL;CELL:9876543210
    EMAIL:unknown@no-domain.jp
    TITLE;CHARSET=UTF-8:元気百倍
    ORG;CHARSET=UTF-8:溌剌株式会社
    END:VCARD

    Thanks in advance!

    Greetings

     

    Last edit: Jasmine G. 2012-09-17
  • George_H

    George_H - 2012-09-19

    Hi, thanks for reporting this and posting your sample VCF file. I'll test it out for version 0.3.6 and our experimental 0.4.0-b1 beta.

     
  • George_H

    George_H - 2012-09-19

    I ran that vcard you posted through cardme v0.3.6 and v0.4.0-b1 and it seems to get parsed with no problems and the output to a string also seems to work.

    I even set break points in the middle of the parser and writer and inspected the strings in memory and they are displaying as those shown in your example.

    The only issue is that your vcard is missing the FN type which is mandatory but that doesn't stop cardme from parsing the .vcf

    Is it possible to elaborate on what the error is or maybe show me the output that you are getting.

    Thanks.

     

Log in to post a comment.