1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 22:09:02 -05:00

Use Utf8 instead of ASCII in TextDecoder

See https://github.com/denoland/deno/issues/1288
This commit is contained in:
Ryan Dahl 2018-12-06 14:35:41 -05:00
parent 5fbbc2c46c
commit 718d1da853

View file

@ -6,7 +6,7 @@
import { BufReader, BufState } from "./bufio.ts"; import { BufReader, BufState } from "./bufio.ts";
import { charCode } from "./util.ts"; import { charCode } from "./util.ts";
const asciiDecoder = new TextDecoder("ascii"); const asciiDecoder = new TextDecoder();
function str(buf: Uint8Array): string { function str(buf: Uint8Array): string {
if (buf == null) { if (buf == null) {
return ""; return "";