News Feed
Sections




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

SitePoint PHP Blog:
PHP UTF-8 0.1
February 28, 2006 @ 06:54:57

In this post from the SitePoint PHP Blog, Harry Fuecks talks about a new package of software he's worked up to make it possible for PHP to handle UTF-8 encoded strings - PHP UTF-8.

Been messing around with bits of this code for a long time, in fact since first really getting to grips with Dokuwiki, but finally got the first release out.

PHP UTF-8 is intended to make it possible to handle UTF-8 encoded strings in PHP, without requiring the mbstring extension (although it uses mbstring if it's available). In short, it provides versions of PHP's string functions (pretty much everything you'll find on this list), prefixed with utf_ and aware of UTF-8 encoding (that 1character >= 1 byte). It also gives you some tools to help check UTF-8 strings for "well formedness", strip bad sequences and some "ASCII helpers".

He continues the post, mentioning where some of the code for it was pulled from and a note about the documentation (there, but scarce). He also includes a warning for the use of it - not to use it "blindly" and only to use it when you need it, not to replace the standard PHP str_* functions.

2 comments voice your opinion now!
sitepoint utf-8 mbstring handle string encoded sitepoint utf-8 mbstring handle string encoded


blog comments powered by Disqus

Similar Posts

ProDevTips Blog: Fluent Arrays and Strings in PHP

Derick Rethans: Xdebug 2.3: Shared Secret to Enable Tracing or Profiling

Nikita Popov's Blog: Disproving the Single Quotes Performance Myth

ProDevTips Blog: Fluent Arrays and Strings in PHP - Adding JSON and more

DotVoid.com: Parsing the user agent string using PHP


Community Events

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


php7 series extension install language release voicesoftheelephpant community podcast introduction xdebug framework api laravel library opinion interview unittest example laravel5

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