Blog Post RSS ?

Blogs » PHP » Living Dangerously with PHP and UTF-8
 

Living Dangerously with PHP and UTF-8

by Harry Fuecks

Quick one – knocked up a list of “dangerous” functions and functionality in PHP, in relation to the use of UTF-8, available at http://www.phpwact.org/php/i18n/utf-8. These are for a “default” PHP setup without the mbstring overloading or PHP6 (where charset problems “magically vanish” ;)).

This follows on from (unfinished) stuff here on charsets (tending towards UTF-8), which should help explain some of this.

Should point out this is coming from the angle “you can’t rely on the mbstring extension being available”, which is often the case with shared hosts – how to you deal with i18n in such environments. The counter view is here.

Anyway – hopefully useful as a starting point for analysing PHP code bases when considering UTF-8 (with a little help from phpxref perhaps). If you want to change / add stuff, the wiki requires a login which you can get here

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Ping.fm
  • Twitthis

Related posts:

  1. How to Install PHP on Windows In his final installation tutorial, Craig provides a step-by-step guide...
  2. Introducing php-tracer-weaver php-tracer-weaver is a tool for automatically generating docblock comments, with...
  3. Installing PHP on Windows Just Got Easier Have you ever felt frustrated when setting up a PHP/MySQL...
  4. Free PHP Webinar: How to Increase Performance with Caching Zend are running a free webinar today, with a live...
  5. Are PHP Namespaces Really So Bad? Namespaces have caused a divide amongst developers who either love...

This post has 2 responses so far

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow SitePoint on...