FWR Media, on 05 January 2011 - 12:03 PM, said:
Thanks for sharing Ivan
Very nice to see somebody offering conversion files for use by others ( only 4 people have bothered so far ).
BTW the CAT worries me as the multi language system expects all languages to be just two characters ..
en, de, es, etc.
Because the manufacturers_names in my shop have their origin in germany or in the czech republic, they contain many special characters.
To display all of them, I have to use the UTF-8 charset. As german customers see czech manufacturers I have to include the special czech characters in the german character conversion table german.php and for the czech customers I have to include the special german chars into the czech.php. I also had to include some more special signs, which are not automatically stripped away for the URI, when you use UTF-8.
So my $char_convert array for czech.php, german.php and english.php is the same:
$char_convert = array('ů' => 'u', 'á' => 'a', 'â' => 'v', 'ý' => 'y', 'ä' => 'ae',
'ž' => 'z', 'š' => 's', 'ť' => 't', 'č' => 'c', 'é' => 'e',
'ê' => 'k', 'Ť' => 't', 'ě' => 'e', 'í' => 'i', 'ď' => 'd',
'ï' => 'p', 'ð' => 'r', 'Ď' => 'd', 'ň' => 'n', 'ó' => 'o',
'Ť' => 't', 'Š' => 's', 'ö' => 'oe', '÷' => 'ch', 'ř' => 'r',
'ù' => 'u', 'ú' => 'u', 'ü' => 'ue', '™' => '', 'ÿ' => 'ia',
'À' => 'a', 'Á' => 'a', 'Â' => 'v', 'Ã' => 'g', 'Ä' => 'ae',
'Å' => 'e', 'Ý' => 'y', 'Ž' => 'z', 'Č' => 'c', 'É' => 'e',
'Ê' => 'k', 'Ů' => 'u', 'Ě' => 'e', 'Í' => 'i', 'Î' => 'o',
"´" => "", '°' => '', 'Ø' => '', 'Ň' => 'n', 'Ó' => 'o',
'Ô' => 'f', 'Õ' => 'h', 'Ö' => 'oe', '×' => 'ch', 'Ř' => 'r',
'Ù' => 'u', 'Ú' => 'u', 'Ü' => 'ue', '–' => '-', 'ß' => 'ss');
Hope it helps.
Manfred