PHPverse 2025

Voting

: seven plus one?
(Example: nine)

The Note You're Voting On

sven at e7o dot de
10 years ago
PHP is failing when parsing UTF-8 with Byte Order Mark. Strip it with this one from string before passing it to csv parser:

<?php
$bom
= pack('CCC', 0xEF, 0xBB, 0xBF);
if (
strncmp($yourString, $bom, 3) === 0) {
$body = substr($yourString, 3);
}
?>

<< Back to user notes page

To Top