note 115268 deleted from function.utf8-encode by salathe

From: Date: Wed, 25 Jun 2014 10:27:51 +0000
Subject: note 115268 deleted from function.utf8-encode by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-199756@lists.php.net to get a copy of this message
Note Submitter: DerrickCodeDero ---- Hey guys, i have an issue related with the utf-8 charset. I've been all around the web (well, not entirely) but for quite awhile now and the best advice was and is to set the header charset to "UTF-8". However, I was developing my web application locally on my machine using xampp (and sometimes wamp so as to get a distinction of the two when it came to debugging my code). Everything was working great =). But as soon as i uploaded it online, the result was not all that jazzy (the kind of errors you would get if you had set the headers to a different charset like "iso-8859-1"). Every header in my code has UTF-8 as the default charset, but i still got the same "hieroglyphic thingies". Then you guys gave me the idea that the issue isn't my code but the php.ini that was running it.. Turns out my local machine was running php 5.5 and the cpanel where i had uploaded my web application was running native php 5.3. Well, when i changed the version of php that my cpanel was set by default to PHP 5.5, believe you me guys =) it worked like a charm just like as if i was right there at the localhost of machine. NOTE: Please, if you got the same problem as i did, just make sure your PHP is 5.5 version.. I'm posting this coz i feel you guys. Cheers!

« previous php.notes (#199756) next »