__construct()
__construct() :
UTF8
UTF-8 routines
smartUtf8_decode( inStr) :
Decode UTF-8 ONLY if the input has been UTF-8-encoded.
Adapted from 'nospam' in the user contributions at: http://www.php.net/manual/en/function.utf8-decode.php
inStr |
decodeUtf8( utf8_string) :
UTF-8 encoding - PROPERLY decode UTF-8 as PHP's utf8_decode can't hack it.
Freely borrowed from morris_hirsch at http://www.php.net/manual/en/function.utf8-decode.php bytes bits representation 1 7 0bbbbbbb 2 11 110bbbbb 10bbbbbb 3 16 1110bbbb 10bbbbbb 10bbbbbb 4 21 11110bbb 10bbbbbb 10bbbbbb 10bbbbbb Each b represents a bit that can be used to store character data.
input CANNOT have single byte upper half extended ascii codes
utf8_string |