Problem with special characters
| From: | ojje johansson | Date: | Tue, 07 Oct 2003 11:37:58 +0000 |
| Subject: | Problem with special characters | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21709@lists.php.net to get a copy of this message | ||
Anyone having ide why special characters suddenly doesnt work on my apache (on win2k). I wont return letter like "'e" and swedish characters öåä from mssql 2000. It worked before but after i have unistalled zonealarm and run windows update, and installed win 2000 server client tool's php wont recognize those characters right. The characters im talking about is stored on a windows 2000 server (on win 2000), see function downbelow. Can the windows update change the unicode on the webserver?
Here is a function that is used to store the special characters:
function changeCharSweToDb($string){
$string = ereg_replace ("å", "", $string);
$string = ereg_replace ('ä', '', $string);
$string = ereg_replace ('ö', '', $string);
$string = ereg_replace ("Å", "", $string);
$string = ereg_replace ("Ä", "", $string);
$string = ereg_replace ("Ö", "", $string);
$string = str_replace ('"', '"', $string);
return $string;
}
Any ideas?
/orjan
_________________________________________________________________
Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/