Skip to content

Commit 83b6984

Browse files
committed
add //IGNORE flag to iconv conversion call
1 parent e5ad54b commit 83b6984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSSParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private function parseCharacter($bIsForIdentifier) {
186186

187187
$sUtf16 = pack("H*" , $sUtf16Bytes);
188188

189-
$result = iconv('utf-16', $this->sCharset, $sUtf16);
189+
$result = iconv('utf-16', $this->sCharset . '//IGNORE', $sUtf16);
190190
// use utf-16 big endian character set for the check, as we do not want a leading Byte Order Mark
191191
$check = iconv($this->sCharset, 'utf-16be', $result);
192192
if ($check !== $sUtf16) {

0 commit comments

Comments
 (0)