Zen Cart Logo
Forums / Managing Customers and Orders / Notification Email Issues in German -Issues with Umlaute-

Notification Email Issues in German -Issues with Umlaute-

Locked

Views: 5,962

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
1 May 2007, 10:48 AM
#1
heat avatar

heat

New Zenner

Join Date:
May 2007
Posts:
20
Plugin Contributions:
0

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.

1 May 2007, 2:41 PM
#2
heat avatar

heat

New Zenner

Join Date:
May 2007
Posts:
20
Plugin Contributions:
0

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

No help, no ideas? :(

1 May 2007, 4:26 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

3 May 2007, 2:00 PM
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

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

I might have an alternative solution for this:

http://osdir.com/ml/serendipity.cvs/2003-06/msg00051.html

$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. :wink2:

31 Oct 2008, 9:07 AM
#5
carilivia avatar

carilivia

New Zenner

Join Date:
Dec 2006
Posts:
32
Plugin Contributions:
0

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');

5 Aug 2009, 4:44 AM
#6
djoel avatar

djoel

New Zenner

Join Date:
Aug 2009
Posts:
56
Plugin Contributions:
0

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.

/**
 * 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);
    }
}  
 
5 Nov 2010, 12:28 PM
#7
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

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

carilivia:

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

5 Nov 2010, 1:06 PM
#8
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

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

??????????