Results 1 to 9 of 9

Thread: Problem with character sets when importing

  1. #1
    itso is offline Member
    Join Date
    Oct 2008
    Posts
    6

    Default Problem with character sets when importing

    Hi all,

    I have just installed 5.1 on a shared host with a typical install - everything is UFT-8. I created an account whose name contains Cyrillic characters. Everything shows up great on the screen. Then I export this account, delete it from the system and try to import it again. Everything works well, I can see the correct name in the preview - the last step before importing. After the import, however, the cyrillic characters in the name get messed up. Since this file is produced by the same installation, I am certain that the output and input codec is correct - UTF-8, besides I have checked visually in the user profile.

    My only explanation is that during the import action, Sugar tansforms the characters in some other character set and the result is that non-UFT-8 is written in mysql. I have even looked inside the accounts table. So I think that this is a bug. I have tried this in Windows XP and Ubuntu on that shared host and also in a local installation on xampp. You can see the phpinfo at:
    http://mmdpartners.com/sugar51/phpinfo.php

    Could someone please help me. This is very weird. I am fairly technical but still an enthusiast - not a professional - and any ideas are appreciated.

    Greetings from Bulgaria.

    -Itso

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Problem with character sets when importing

    Hello Itso -

    Click on My Account and take a look at the "Import/Export Character Set:" setting. Is that also UTF8?

    Clint
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    itso is offline Member
    Join Date
    Oct 2008
    Posts
    6

    Default Re: Problem with character sets when importing

    Hi Clint,

    Yes, it is UTF-8. I do an export from this installation of one account. I do not change anything. Then I try to import it and it comes in with jumbled characters. I am doing this with the admin user. No others have been created yet. I want to try this out before fully committing to 5.1.

    Do you need any other diagnostic info. you can download the diagnostic file from:
    http://www.mmdpartners.com/sugar51/diagnostic1.zip

    -i

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

    Default Re: Problem with character sets when importing

    Did you check the import details (underneath the mappings, you need to open it)? Try to change the character set there.
    __________________________
    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

  5. #5
    itso is offline Member
    Join Date
    Oct 2008
    Posts
    6

    Default Re: Problem with character sets when importing

    could you please tell me where to look and what exactly... I have the source code downloaded, I could also search a dump of the database.

    please note that I am trying to export and import on the same installation, so encodings should not matter. But still cyrillic characters get jumbled.

    Thank you for your help/
    -i

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

    Default Re: Problem with character sets when importing

    Not so complicated. Third page of the import wizard, where you set the mappings. See attached.
    Hope it helps
    Attached Images Attached Images  
    __________________________
    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

  7. #7
    itso is offline Member
    Join Date
    Oct 2008
    Posts
    6

    Default Re: Problem with character sets when importing

    Thank you, Robert,

    I just noticed from your response that the import screen has advanced settings. Of course they were the problem. For some reason, they by default assume a CP1252 character set for my CSV file. Why is this the default value here if I have set everything in Sugar to UTF? Can't it just take that and not show initiative ? I guess this allows for some flexibility if one cannot reproduce the export file in the desired char set. Still, the lack of consistency is confusing, especially since the advanced import options are hidden behind a button.

    Once I put UTF-8 there everything works.

    Thank you very much for your help.

    -Hristo Stefanov

  8. #8
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Problem with character sets when importing

    Quote Originally Posted by itso
    Thank you, Robert,

    I just noticed from your response that the import screen has advanced settings. Of course they were the problem. For some reason, they by default assume a CP1252 character set for my CSV file. Why is this the default value here if I have set everything in Sugar to UTF? Can't it just take that and not show initiative ? I guess this allows for some flexibility if one cannot reproduce the export file in the desired char set. Still, the lack of consistency is confusing, especially since the advanced import options are hidden behind a button.

    Once I put UTF-8 there everything works.

    Thank you very much for your help.

    -Hristo Stefanov
    Bug 25927 filed to track this issue.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  9. #9
    jyim's Avatar
    jyim is offline Sugar Team Member
    Join Date
    Mar 2006
    Location
    Cupertino, CA
    Posts
    943

    Default Re: Problem with character sets when importing

    FYI, Bug 25927 was fixed in the 5.1.0c release.

    Jennifer Yim
    Senior Product Manager
    SUGARCRM Inc.
    Home: http://www.sugarcrm.com | Live Demo: http://www.sugarcrm.com/sugarcrm

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2008-04-15, 01:53 PM
  2. Importing problem
    By dgewirtz in forum Help
    Replies: 2
    Last Post: 2007-10-12, 03:17 AM
  3. JSON module problem when guessing url
    By ogomez in forum Developer Help
    Replies: 16
    Last Post: 2007-06-27, 07:22 AM
  4. Replies: 3
    Last Post: 2006-07-19, 04:49 PM
  5. Replies: 1
    Last Post: 2004-10-31, 05:59 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
  •