Results 1 to 3 of 3

Thread: Cannot Import Norwegian Characters

  1. #1
    magicbobeto is offline Member
    Join Date
    Jan 2007
    Posts
    5

    Default Cannot Import Norwegian Characters

    Hi,

    os: linux 2.6.24.3-grsec-sg1
    sugar: 5.0.0.d
    php: 5.2.5
    webserver: 1.3.37 (Unix)
    mysql: 5.0.45-community-log

    I am having problems importing CSV files of Account and Contact records that contain Norwegian characters.

    If I create a new account or contact directly in sugar I can enter Norwegian characters without problems.

    However if I run an Import from Sugar, all the Norwegian characters are removed !! ( E.g 'Ålgård' becomes 'lgrd' ).

    I have ensured that all the collations that i can set in MySQL are 'utf8_general_ci'. Below is a list of the MySQL Collations variables as shown through phpMyAdmin. Some of these still show latin1_swedish_ci', i believe these are server settings that i don't have rights to change.

    Database Collation
    information_schema utf8_general_ci
    act_sugarprod utf8_general_ci
    act_sugarprod2 utf8_unicode_ci
    act_sugarskel utf8_unicode_ci
    Total: 4 latin1_swedish_ci

    character set client utf8
    (Global value) latin1
    character set connection utf8
    (Global value) latin1
    character set database latin1
    character set filesystem binary
    character set results utf8
    (Global value) latin1
    character set server latin1
    character set system utf8
    character sets dir /usr/share/mysql/charsets/
    collation connection utf8_unicode_ci
    (Global value) latin1_swedish_ci
    collation database latin1_swedish_ci
    collation server latin1_swedish_ci

    It looks like the problem must be to do with the actual Import process from Sugar.

    It's really strange problem that is causing me a lot of headaches, as i really need those Norse characters in there!! If anyone has any ideas on how to fix it please let me know!!!

    Thanks,

    Magic Bob

  2. #2
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Cannot Import Norwegian Characters

    Hi,

    I just tested it and in 5e it works fine (and as far as I know it did in all previous versions).

    Did you make sure that your import file is utf8? It sounds stupid but the best test is to import the csv into e.g. OO calc and check with which character set you Norwegian characters look right. If it's not utf8 you know where the problem is.
    BTW. the database doesn't really care about the character set, it's the sort (collation) that must be set up correctly (a before ä and similar).

    rgds
    rl
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  3. #3
    magicbobeto is offline Member
    Join Date
    Jan 2007
    Posts
    5

    Thumbs up Re: Cannot Import Norwegian Characters

    Brilliant Robert !!

    That was the problem, i'd exported the CSV from Excel, but then I had to do a bit of editing in TextEdit, and when i saved that file it was saving it in Western encoding. Saving it as Unicode sorted all my problems.

    You da man!!!!!

    Thanks a lot!

    Magic Bob

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2008-01-08, 09:11 PM
  2. Replies: 0
    Last Post: 2007-06-28, 11:13 PM
  3. Replies: 1
    Last Post: 2005-08-06, 06:38 PM
  4. Replies: 4
    Last Post: 2004-12-02, 11:15 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
  •