News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
Let's talk Character Encoding
March 15, 2012 @ 11:07:07

On Reddit.com there's a recent post with a growing discussion about character encodings in PHP applications (with some various recommendations).

I would rather not have to convert these weird characters to the HTML character entities, if possible. I'd rather be able to use these characters directly on the web page. If this is for some reason a bad idea, let me know. This might be more of a general web design question (i already posted it there), but I figured it is still appropriate to post here as well since PHP is used to pull an entry from the database, and I figured a lot of you here would know the answer to the question.

The general consensus is to use UTF8 in this case, but there's a few reminders for the poster too:

  • Don't forget to make the database UTF8 too
  • Be sure you're sending the right Content-Type for the UTF8 data
  • an link to an article about what "developers must know about unicode/charactersets"
0 comments voice your opinion now!
character encoding advice reddit utf8 contenttype unicode


blog comments powered by Disqus

Similar Posts

Evert Pot's Blog: basename() is locale-aware

Jim Plush\'s Blog: My-Bic version 0.6 Released

Andrei Zmievski's Blog: Linux.com interview

PHPClasses.org: 10 Steps to properly do PHP Bug Tracking and Fixing as Fast as possible

Reddit.com: I want a job as a developer. Here's my situation, can you help?


Community Events











Don't see your event here?
Let us know!


podcast component hhvm security symfony2 unittest package hack language introduction facebook code release series framework application performance opinion composer install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework