note 115268 added to function.utf8-encode
| From: | DerrickCodeDero | Date: | Wed, 25 Jun 2014 08:33:56 +0000 |
| Subject: | note 115268 added to function.utf8-encode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199755@lists.php.net to get a copy of this message | ||
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!
----
Server IP: 72.52.91.14
Probable Submitter: 154.122.67.159
----
Manual Page -- http://php.net/manual/en/function.utf8-encode.php
Edit -- https://master.php.net/note/edit/115268
Del: integrated -- https://master.php.net/note/delete/115268/integrated
Del: useless -- https://master.php.net/note/delete/115268/useless
Del: bad code -- https://master.php.net/note/delete/115268/bad+code
Del: spam -- https://master.php.net/note/delete/115268/spam
Del: non-english -- https://master.php.net/note/delete/115268/non-english
Del: in docs -- https://master.php.net/note/delete/115268/in+docs
Del: other reasons-- https://master.php.net/note/delete/115268
Reject -- https://master.php.net/note/reject/115268
Search -- https://master.php.net/manage/user-notes.php