Results 1 to 4 of 4

Thread: Dump restore - Character Set

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

    Default Dump restore - Character Set

    Hi,

    I have a weird problem: the data of my demo version is reset every night by running a simple cron job that restores a previous dump. Tables are dropped and re-created.
    During normal operation I can enter/save special characters (German Umlaute) and they are retrieved/shown correctly, But the restored data always is wrong (as in showing funny signs rather than letters).

    I am almost 100% sure that this started with version 5.1. The dump was made with version 5.1 and just to be on the safe side I fixed the errors once from within Sugar and then again directly on the table and created new dumps. No change. I did open the .sql files on my local PC but I did not save them. So no chance that the character set was changed locally.

    Sugar 5.1ce
    Litespeed
    php5
    mysql5
    Ubuntu 7.1 Server, 8.04 client

    Any idea is appreciated

    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

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

    Default Re: Dump restore - Character Set

    After various tests it turns out that this time Sugar is not the culprit. But I still do not understand it. The restore as command line task (cron job) destroys my special characters. The same file imported through phpmyadmin leaves everything intact.

    I am still looking for an explanation because I find it a bit hard to get up every day at midnight to run my restore manually...

    Any help is greatly appreciated.

    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
    sunside is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    79

    Default Re: Dump restore - Character Set

    I don't really know if this helps, but every time before I play in a restore, I have to type

    PHP Code:
    charset utf8
    into the mysql command line, and then it will recognize the special chars...

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

    Default Re: Dump restore - Character Set

    Thanks, I will try this - maybe I should check the MYSQL manual...

    [edit] - yes, I inserted the default char set command and everything is fine now. But it's still hard to understand because phpmyadmin reports the server to be utf8 (not the collation, the char set).

    However - thx again for the help

    rgds
    rl
    Last edited by roblaus; 2008-06-13 at 06:22 AM.
    __________________________
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2008-01-24, 09:59 AM
  2. ZuckerReports character set problem
    By balou in forum Help
    Replies: 2
    Last Post: 2007-10-17, 03:14 PM
  3. Replies: 0
    Last Post: 2007-09-07, 11:01 AM
  4. Bulk e-mail character set
    By RSePeter in forum Help
    Replies: 0
    Last Post: 2007-08-20, 10:05 AM
  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
  •