Accented characters lost after contacts import from VCard

Hello,

When a user tries to import contacts into a personal address book from a VCard file, the french accented characters are lost. The following is an example of the VCard file :

BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN;CHARSET=UTF-8:Bélanger Stéphanie
N;CHARSET=UTF-8:Bélanger;Stéphanie
EMAIL;INTERNET;PREF:stephaniebelanger@company.domain
END:VCARD

The result is the following in the personal address book of the user :

Full name : Stphanie Blanger
Display name : Blanger Stphanie
Email address : stephaniebelanger@company.domain

Thanks for your help.

Tags:

  • On 2/27/2013 6:26 AM, dclavel wrote:
    >
    > Hello,
    >
    > When a user tries to import contacts into a personal address book from
    > a VCard file, the french accented characters are lost. The following is
    > an example of the VCard file :
    >
    > BEGIN:VCARD
    > VERSION:2.1
    > X-GWTYPE:USER
    > FN;CHARSET=UTF-8:B�langer St�phanie
    > N;CHARSET=UTF-8:B�langer;St�phanie
    > EMAIL;INTERNET;PREF:stephaniebelanger@company.domain
    > END:VCARD
    >
    > The result is the following in the personal address book of the user :
    >
    > Full name : Stphanie Blanger
    > Display name : Blanger Stphanie
    > Email address : stephaniebelanger@company.domain
    >
    > Thanks for your help.
    >
    >

    It's hard to read your output, but if indeed that's a SINGLE BYTE
    between B and L, then the VCARD is wrong - this cannot be UTF-8, which
    is 2-4 byte for all non US ASCII.


  • It is a single byte, ascii code 130, the character "e" with an accent.

    If I convert the file from ASCII to UTF-8 in UltraEdit, then the import is correct with all the accented characters.

    Is there a way to configure the GroupWise client to import the VCard file in UTF-8 format ?

    Thanks!
  • On 28.02.2013 16:36, dclavel wrote:
    >
    > It is a single byte, ascii code 130, the character "e" with an accent.


    Then it's not UTF-8, and the vcard is broken.

    > Is there a way to configure the GroupWise client to import the VCard
    > file in UTF-8 format ?


    No. You look at it from the wrong side. The vcard is wrong. It claims to
    be UTF-8, but it isn't. You must solve the Problem at the sender of the
    vcard.

    CU,
    --
    Massimo Rosen
    Novell Knowledge Partner
    No emails please!
    http://www.cfc-it.de
  • On 2/28/2013 7:36 AM, dclavel wrote:
    >
    > It is a single byte, ascii code 130, the character "e" with an accent.
    >
    > If I convert the file from ASCII to UTF-8 in UltraEdit, then the import
    > is correct with all the accented characters.
    >
    > Is there a way to configure the GroupWise client to import the VCard
    > file in UTF-8 format ?
    >
    > Thanks!
    >
    >

    Then it should say ISO-8859-1 or whatever. What it's sending is a single
    byte charset, advertised as UTF-8