When I tested a website locally the text appeared just fine, with · in front of them or ' in the middle. But now that I have uploaded everything to a demo server the · and ' changed into ? Why does this happen, and what can I do to fix it?
This is what happens with text thats entered into the database
I thought maybe I should have used htmlspecialchars for the ·, but that doesn't have any effect.PHP Code:function safeEscapeString($string){
global $dbc;
if (get_magic_quotes_gpc()) {
$string = stripslashes($string);
}
return mysql_real_escape_string($string, $dbc);
}
function cleanVar($string){
$string = trim($string);
$string = safeEscapeString($string);
$string = strip_tags($string);
$string = preg_replace('/\s\s+/',' ', $string); //double spaties
return $string;
}








Bookmarks