generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The Shortcomings sections mentions:
Importing text with an encoding defined within JavaScript
will require importing it as an Uint8Array,
and explicitly decoding it:import uint8array from "path/to/file.txt" with { type: "bytes" }; let text = new TextDecoder("utf-16le").decode(uint8array);
Would it be possible to specify the encoding as part of the with block?
import text from "path/to/file.txt" with { type: "text", encoding: "utf-16le" }sffc and TheOneTheOnlyJJslorber and TheOneTheOnlyJJ
Metadata
Metadata
Assignees
Labels
No labels