Results 1 to 8 of 8
  1. #1
    Join Date
    May 2007
    Posts
    20
    Plugin Contributions
    0

    Default Notification Email Issues in German -Issues with Umlaute-

    Hi, I am using the zen-cart in English and German. When a customer orders, he receives an order confirmation email & subsequent updates on the order process.

    When using German, the subject line shows some strange letters as placeholders for the German umlaut, i.e. instead of 'ü' (ue) it writes %&%@,:; or something like this in the middle of a word.

    How and where can I change/correct this?

    I've checked all the files in language 'german' and also all the other files in the cart system. Still, I have not managed to remedy this.

    Thanks for your urgent help.

  2. #2
    Join Date
    May 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Notification Email Issues in German -Issues with Umlaute-

    No help, no ideas?

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Notification Email Issues in German -Issues with Umlaute-

    I don't have any authoritative knowledge on this, but from what I've seen, it would be a character set issue. You would need to change either your database or operating system or something else to use a more comprehensive character set (e.g. latin -> utf-8) which knows how to display German characters.
    You might try googling that, as it's not just a Zen Cart issue.

  4. #4
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Notification Email Issues in German -Issues with Umlaute-

    I might have an alternative solution for this:

    http://osdir.com/ml/serendipity.cvs/.../msg00051.html

    PHP Code:
    $str str_replace("Ü""UE"$str);
    $str str_replace("ü""ue"$str); 
    Meaning; you could replace these characters from your definition language name. Then, it should show the results correctly.

  5. #5
    Join Date
    Dec 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Notification Email Issues in German -Issues with Umlaute-

    For anyone else that is looking for this fix ... here's what I did:

    I replaced this code

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    With this code in my includes/languages/german.php file


    // charset for web pages and emails
    define('CHARSET', 'iso-8859-1');

  6. #6
    Join Date
    Aug 2009
    Posts
    59
    Plugin Contributions
    0

    Default Re: Notification Email Issues in German -Issues with Umlaute-

    Assuming you still have problems after changing your charset into iso-8859-1, put following code into line 46 of
    includes/ languages/german.php.

    Notes: 1. Set back your charset to utf-8.
    2. Be sure to use your override language file.
    3. As long as everything works fine with the iso-8859- leave it like it is.


    PHP Code:
    /**
     * This is an Unicode aware replacement for str_word_count()
     * $charlist has to be ascii or utf-8
     * does not use locale information
     * public domain
      */
    function utf8_str_word_count($string,$format=0,$charlist='') {
        
    $array preg_split("/[^'\-A-Za-z".$charlist."]+/u",$string,-1,PREG_SPLIT_NO_EMPTY);
        switch (
    $format) {
        case 
    0:
            return(
    count($array));
        case 
    1:
            return(
    $array);
        case 
    2:
            
    $pos 0;
            foreach (
    $array as $value) {
            
    $pos utf8_strpos($string,$value,$pos);
            
    $posarray[$pos] = $value;
            
    $pos += utf8_strlen($value);
            }
            return(
    $posarray);
        }

    Last edited by djoel; 5 Aug 2009 at 05:49 AM.

  7. #7
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Notification Email Issues in German -Issues with Umlaute-

    Quote Originally Posted by carilivia View Post
    For anyone else that is looking for this fix ... here's what I did:

    I replaced this code

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    With this code in my includes/languages/german.php file


    // charset for web pages and emails
    define('CHARSET', 'iso-8859-1');
    I did the above and everything what coming from the database show ok but all the php pages show like this:

    Ihre Bestellung wird an die links angezeigte Anschrift geliefert. Sie k�nnen die Lieferanschrift �ndern, wenn Sie auf den Button Adresse �ndern klicken.

    Shipping Method:
    Bitte w�hlen Sie die Versandart f�r Ihre Bestellung.

    Hope somebody can help because i already stuck with it for a few days

    Thanx
    Andre

  8. #8
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Notification Email Issues in German -Issues with Umlaute-

    I changed it back to

    define('CHARSET', 'iso-8859-1');

    Now my php pages are good but everything out of the database is wrong

    Like this Categorie: Schlüsselanhänger shows Schlüsselanhänger

    ??????????

 

 

Similar Threads

  1. v151 Email issues with Bluehost -- suddenly none are going through
    By stitchnkitty in forum General Questions
    Replies: 13
    Last Post: 24 Aug 2016, 04:38 PM
  2. v150 CC via MIGS Payment Gateway Issues and/or zenID Issues?
    By smcelligott in forum Addon Payment Modules
    Replies: 5
    Last Post: 21 Apr 2013, 02:25 AM
  3. v150 Having Issues With Welcome Email
    By Stargirl in forum Managing Customers and Orders
    Replies: 7
    Last Post: 5 Aug 2012, 03:16 PM
  4. Issues sending coupon notification to newsletter subscribers
    By Laser Tek in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 13 Aug 2010, 08:31 PM
  5. Issues sending coupon notification to newsletter subscribers
    By Laser Tek in forum General Questions
    Replies: 0
    Last Post: 12 Aug 2010, 04:44 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR