¡@

Home 

php Programming Glossary: xbf

Regex to detect Invalid UTF-8 String

http://stackoverflow.com/questions/11709410/regex-to-detect-invalid-utf-8-string

x8F # Overlong encoding of prior code point xC2 xDF x80 xBF # Invalid UTF 8 Sequence Start xE0 xEF x80 xBF 2 # Invalid UTF.. xC2 xDF x80 xBF # Invalid UTF 8 Sequence Start xE0 xEF x80 xBF 2 # Invalid UTF 8 Sequence Start xF0 xF4 x80 xBF 3 # Invalid.. xEF x80 xBF 2 # Invalid UTF 8 Sequence Start xF0 xF4 x80 xBF 3 # Invalid UTF 8 Sequence Start x0 x7F xF5 xFF x80 xBF # Invalid..

PHP: Truncate HTML, ignoring tags

http://stackoverflow.com/questions/1193500/php-truncate-html-ignoring-tags

one character. re isUtf8 ' a z ^ # a zA Z0 9 x80 xFF x80 xBF ' ' a z ^ # a zA Z0 9 ' while printedLength maxLength preg_match..

Remove non-utf8 characters from string

http://stackoverflow.com/questions/1401317/remove-non-utf8-characters-from-string

x00 x7F # single byte sequences 0xxxxxxx xC0 xDF x80 xBF # double byte sequences 110xxxxx 10xxxxxx xE0 xEF x80 xBF 2.. xBF # double byte sequences 110xxxxx 10xxxxxx xE0 xEF x80 xBF 2 # triple byte sequences 1110xxxx 10xxxxxx 2 xF0 xF7 x80 xBF.. 2 # triple byte sequences 1110xxxx 10xxxxxx 2 xF0 xF7 x80 xBF 3 # quadruple byte sequence 11110xxx 10xxxxxx 3 1 100 # ...one..

Elegant way to search for UTF-8 files with BOM?

http://stackoverflow.com/questions/204765/elegant-way-to-search-for-utf-8-files-with-bom

but clears nasty BOM find . type f exec sed '1s ^ xEF xBB xBF ' i.bak exec rm .bak I love find If you want just to show BOM..

How can I output a UTF-8 CSV in PHP that Excel will read properly?

http://stackoverflow.com/questions/4348802/how-can-i-output-a-utf-8-csv-in-php-that-excel-will-read-properly

attachment filename Customers_Export.csv' echo xEF xBB xBF UTF 8 BOM I believe this is a pretty ugly hack but it worked..