Problem with special characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux