Closed ikreymer closed 5 months ago
If BOM is present in the text, decode correctly in ArchiveResponse.getText()
Use Buffer.toString() for UTF-16 (swap for utf16be) and just remove bom for UTF-8, as decoding already handled by TextDecoder.
Fixes #154 and #155
If BOM is present in the text, decode correctly in ArchiveResponse.getText()
Use Buffer.toString() for UTF-16 (swap for utf16be) and just remove bom for UTF-8, as decoding already handled by TextDecoder.
Fixes #154 and #155