You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To clarify the problem: the responses all indicate UTF-8 via the charset attribute in the Content-Type header field, but the actual payloads (file contents) are differently encoded, but indicate their specific encoding with a BOM.
Currently, PowerShell only considers the charset-specified encoding (in whose absence it currently assumes ISO-88591-), and ignores the BOM (even reading it as data).
Arguably, a BOM in the payload, if present, should take precedence over the charset attribute.
See #11547 (comment).
Activity
mklement0 commentedon Jun 1, 2020
To clarify the problem: the responses all indicate UTF-8 via the
charsetattribute in theContent-Typeheader field, but the actual payloads (file contents) are differently encoded, but indicate their specific encoding with a BOM.Currently, PowerShell only considers the
charset-specified encoding (in whose absence it currently assumes ISO-88591-), and ignores the BOM (even reading it as data).Arguably, a BOM in the payload, if present, should take precedence over the
charsetattribute.See #11547 (comment).