Re: Weird characters output

From: Date: Mon, 20 Sep 2004 15:37:12 +0000
Subject: Re: Weird characters output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197300@lists.php.net to get a copy of this message
> I have recently moved a site over to a new server. Now certain > characters are being replaced by weird characters. EG: the ' single > quote is being replaced by a question mark and other characters are also > affected. the information that contains these characters is inside a > mysql database. The webserver is Apache and it is running on a linux, I > have googled and found that it is an Apache PHP issue but have yet to > come up with a solution. If anyone knows whats causing the problem and > could help that would be great. Most likely this is one of many occurences of the UTF problem. Try adding the line AddDefaultCharset iso-8859-1 to your httpd.conf, either within your vhost specification or by replacing the main one. Then restart Apache. Should work. If you don't have root access - try adding it to an .htaccess file, but I don't know of this directive is allowed in there ..

« previous php.general (#197300) next »