Results 1 to 5 of 5

Thread: Character issues with MS SQL Server

  1. #1
    se1269 is offline Member
    Join Date
    Dec 2009
    Posts
    12

    Default Character issues with MS SQL Server

    Configuration:
    Windows Server 2003 SP2
    SugarCRM CE 5.2.0J
    IIS 6.0
    PHP-5.2.11
    MS SQL Server 2005

    I just migrated our contacts from our previous contacts system (MS SQL Server 2008) to SugarCRM - using T-SQL scripts to copy data from one system to another.
    After the migration, I noticed that some of the names & addresses did not display properly. Working in Geneva, we use a lot of french characters (é è à ...):

    Example - see also attached pdf file:
    - Address displayed in SugarCRM:
    Rue Fr�d�ric Jean 5
    Gen�ve
    Switzerland

    - Same Address stored in SQL Server (in the SugarCRM database):
    Rue Frédéric Jean 5 Genève Switzerland

    Could someone help me with this issue? If I correct the characters manually from the SugarCRM interface, then the data appeared in the database as éÃ.äüè.... Which might not could either if I integrate SugarCRM with other applications!

    Thanks in advance for you help.
    Attached Images Attached Images
    Last edited by se1269; 2009-12-10 at 10:08 AM.

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Character issues with MS SQL Server

    Make sure that the character set defined for the database and the character set defined for sugar are the same.

    You'll find the sugar definition in config.php at this line:

    'default_charset' => 'UTF-8',

  3. #3
    se1269 is offline Member
    Join Date
    Dec 2009
    Posts
    12

    Default Re: Character issues with MS SQL Server

    As far as I am aware SQL Server stores unicode in UCS-2 (predecessor of UTF-16).

    I tried to set 'default_charset' => 'UTF-16' in the config.php, but it had no effect.

    Any other ideas?

  4. #4
    se1269 is offline Member
    Join Date
    Dec 2009
    Posts
    12

    Default Re: Character issues with MS SQL Server

    I found the following thread:
    http://www.sugarcrm.com/forums/showthread.php?t=19977

    The solution provided (modification of the index.php) seems to be meeting my needs...
    I will start testing!

  5. #5
    se1269 is offline Member
    Join Date
    Dec 2009
    Posts
    12

    Thumbs up Re: Character issues with MS SQL Server

    The solution is working fine for me

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-10-29, 06:36 PM
  2. Replies: 1
    Last Post: 2008-07-09, 07:04 AM
  3. Hosted server--Issues connecting to DB
    By sandfly in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-02-14, 07:10 PM
  4. Replies: 0
    Last Post: 2006-10-10, 03:14 PM
  5. Which character set is the right one?
    By wprauchholz in forum Help
    Replies: 3
    Last Post: 2006-09-11, 02:07 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
  •