1. go to /lib/ directory
2. find misc.lib.php file and open it in the text editor which allows you to write it in iso-8859-1 !!
3. find the code (this is SEOReplace function):
Code:
// replace special chars
$seo_replacement_str_arr = array (
' ','-','/','\\',',','.','#',':',';','\'','"','[',']','{','}',
')','(','|','`','~','!','@','%','$','^','&','*','=','?','+');
$string = str_replace($seo_replacement_str_arr, '-', $string);
$string = str_replace(GetWesternUTF('s'), 's', $string);
$string = str_replace(GetWesternUTF('g'), 'g', $string);
4. change to:
Code:
// replace special chars
$seo_replacement_str_arr = array (
' ','-','/','\\',',','.','#',':',';','\'','"','[',']','{','}',
')','(','|','`','~','!','@','%','$','^','&','*','=','?','+');
$string = str_replace($seo_replacement_str_arr, '-', $string);
$string = str_replace('ą', 'a', $string);
$string = str_replace('ę', 'e', $string);
...
...
...
...
$string = str_replace('Ą', 'A', $string);
$string = str_replace('Ę', 'E', $string);
$string = str_replace(GetWesternUTF('s'), 's', $string);
$string = str_replace(GetWesternUTF('g'), 'g', $string);
5. save that file in the code you want (i.e. iso-8859-2)
little explanation:
$string = str_replace('x', 'y', $string);
x - first letter in your language
y - second letter which will be displayed