Tag Archives: UTF-8

PHP UTF-8 String Length

If you’ve got an UTF-8 encoded PHP string (e.g. when working with DOMDocument) and you don’t want to rely on the mbstring extension to get it’s length, this can be solved with a simple regular expression (as the string does … Continue reading

Posted in PHP Development, PHP Library, Pressed, The Know Your Language Department | Tagged , , , , , , , , | 1 Comment

WordPress Database Charset and Collation Configuration

Pootzko over at this years new Q&A site for WordPress Administrators and Integrators was wondering why creating database tables via wpdb->query() / SQL didn’t reflect his worpdress collation settings. As it was not obvious for him, I thought about writing … Continue reading

Posted in Hacking The Core, Hakre's Tips, Pressed, Reports | Tagged , , , , , , , | 5 Comments

Normalize URLs 1.0 released

My latest plugin release fixes multiple core wordpress problems to handle HTTP requests properly at once: Normalize URLs. It does so by normalizing every incoming URL to a form that is to be expected by the wordpress core. That way, … Continue reading

Posted in Hakre's Tips, Plugin Plugout, Pressed | Tagged , , , , , , , , , , | 2 Comments