try{
echo("trying");//this prints
mysql_set_charset('utf8'); //if I remove this everything is fine
echo("success"); //this fails
}catch(Exception $e){
echo "problem $e";//this doesn't print
throw new Exception("can't set charset",0, $e);//this does nothing
}
I am introducing spanish characters into my otherwise working code and I'm running into a black hole. I have no idea what the problem is because php just goes off into la-la land and does nothing more after the mysql_set_charset('utf8');
line. When that line is commented out everything works perfectly. Where do I go looking for the error logs? I'm not the sysadmin on the server, so, I'm not sure how the php/mysql was configured. It's a linux box, and I'm assuming it's in some standard configuration, but I'm not finding a logs directory anywhere near php, so, I'm unclear on what I can do to figure out what it doesn't like here.
Oh, and without this line the text comes back featuring a black diamond with a question mark in it for every character that is UTF-8... so... that's the issue I'm actually trying to solve. Perhaps there's a different approach?