diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-06 14:35:41 -0500 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-06 14:36:44 -0500 |
| commit | a34bc9040dc86efe5dfa9e89a6d4daadb425891d (patch) | |
| tree | 9117516d5c98fefc1b6c1e4b7c605463f37161c2 | |
| parent | 79a1de9b140318837255476df36161d24147f4c6 (diff) | |
Use Utf8 instead of ASCII in TextDecoder
See https://github.com/denoland/deno/issues/1288
Original: https://github.com/denoland/deno_std/commit/718d1da8535d9ee8c99a33b7f62b6235eb3a6824
| -rw-r--r-- | textproto.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/textproto.ts b/textproto.ts index 50c0fea9c..4c4b92627 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 ""; |
