mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 08:39:09 -05:00
Use Utf8 instead of ASCII in TextDecoder
See https://github.com/denoland/deno/issues/1288
Original: 718d1da853
This commit is contained in:
parent
79a1de9b14
commit
a34bc9040d
1 changed files with 1 additions and 1 deletions
|
@ -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 "";
|
||||
|
|
Loading…
Reference in a new issue