From a34bc9040dc86efe5dfa9e89a6d4daadb425891d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 6 Dec 2018 14:35:41 -0500 Subject: [PATCH] Use Utf8 instead of ASCII in TextDecoder See https://github.com/denoland/deno/issues/1288 Original: https://github.com/denoland/deno_std/commit/718d1da8535d9ee8c99a33b7f62b6235eb3a6824 --- textproto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textproto.ts b/textproto.ts index 50c0fea9cd..4c4b92627b 100644 --- a/textproto.ts +++ b/textproto.ts @@ -6,7 +6,7 @@ import { BufReader, BufState } from "./bufio.ts"; import { charCode } from "./util.ts"; -const asciiDecoder = new TextDecoder("ascii"); +const asciiDecoder = new TextDecoder(); function str(buf: Uint8Array): string { if (buf == null) { return "";