mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Tweak to comment
This commit is contained in:
@@ -137,6 +137,7 @@ function toUTF8noBOM($string,$message) {
|
||||
$bom = pack("CCC", 0xef, 0xbb, 0xbf);
|
||||
// If there's a BOM in the first few chars
|
||||
if (0 === strncmp($string, $bom, 3)) {
|
||||
// If there's a BOM followed by a Windows based (2 char) line ending
|
||||
// chop BOM off and prefix returned string with a PHP_EOL
|
||||
if (0 === strncmp($string, $bom."\r\n", 5)) {
|
||||
$string = PHP_EOL.substr($string, 3);
|
||||
|
||||
Reference in New Issue
Block a user