Results 1 to 2 of 2

Thread: BUG: Contacts vcard import non ASCII characters

  1. #1
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default BUG: Contacts vcard import non ASCII characters

    When attempting to import an Outlook Express generated vcard containing danish characters it does not import data properly (please see attached screenshot).

    If I take the vcard file and use the Ultraedit (texteditor) functionality Convert ASCII to UTF8 the file is imported correctly. When I attempt to manully convert the lines in the vcard file in PHP (include/vcard.php) with code like this:

    Code:
    if (mb_detect_encoding($line, "auto") == "ASCII") {
       $line = mb_convert_encoding($line, "UTF-8", "ASCII");
    }
    the textual string in the line variable does seem to become UTF-8 however and the generated query in SugarBean.php

    looks correct:

    INSERT INTO contacts SET id=\'54090e76-2b4a-15a3-349e-4a3e8db254f9\',
    date_entered=\'2009-06-21 19:46:01\', date_modified=\'2009-06-21 19:46:01\',
    modified_user_id=\'1\', created_by=\'1\', deleted=\'0\',
    assigned_user_id=\'1\', first_name=\'Søren\', last_name=\'Østergård\',
    title=null

    when running the query manually through a query editor it works fine.

    Please note that the attached vcard has been compressed using 7zip since normal zip does not allow some characters in filenames


    Any help is greatly appreciated.

    Regards
    Kenneth Thorman
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by kenneth.thorman; 2009-07-19 at 08:53 AM.

  2. #2
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: BUG: Contacts vcard import non ASCII characters

    I have tried the suggestions here changing the import charset but it does not fix the problem about the data from the vcard.


    http://www.sugarcrm.com/forums/showt...t=vcard&page=2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. vCard Import Problem - Revisited -
    By rbnoyes in forum Help
    Replies: 0
    Last Post: 2008-03-04, 04:30 PM
  2. Contact import from vCard -> No Account?
    By benoitx in forum General Discussion
    Replies: 2
    Last Post: 2008-02-15, 09:11 AM
  3. vCard 3.0 import problems
    By urbanomad in forum Help
    Replies: 3
    Last Post: 2007-01-05, 05:16 AM
  4. vCard import doesn't handle CRLF properly
    By siwilson in forum Help
    Replies: 1
    Last Post: 2005-10-04, 08:40 AM
  5. Problem with VCARD import using IE
    By dmodde in forum Help
    Replies: 0
    Last Post: 2005-02-27, 09:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •