Tag Archives: Charset

CSS character escape sequences, more on the CSS3 selector syntax (STTS 3 Profile Specification) at W3C.

Posted on by hakre | Leave a comment

htmlspecialchars() improvements in PHP 5.4; the PHP default_charset is here. Input has left untouched so far, first assumable is output encoding will lead to input encoding. But can’t resolve the general dilemma of unknown input encoding for your webapp. See … Continue reading

Posted on by hakre | Leave a comment

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