[Webkit-unassigned] [Bug 169858] Encoding: TextDecoder does not strip BOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 20 00:58:09 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=169858

--- Comment #2 from Anne van Kesteren <annevk at annevk.nl> ---
This has been the behavior since the API was introduced. We did introduce a flag ignoreBOM that makes it not stripped.

There's many UTF-8 entry points in the platform that strip a leading BOM, so offering that functionality seems very reasonable and since you know about whether or not it needs to happen when TextDecoder is constructed, it should not necessarily be performance-sensitive I think, but you might want to branch during decode for convenience, which shouldn't be too costly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170320/09758651/attachment-0001.html>


More information about the webkit-unassigned mailing list