TextDecoder
ArrayBufferから文字コードを指定して文字列を読み取ってくれるWeb API
Constructorに文字コードを指定する
cf. https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder#parameters
DenoだとShift_JISをはじめとして複数の文字コードに対応しきれていない
ここに対応している文字コードのリストがある
これあとで/deno-jaに書いとくか。
Reference
https://developer.mozilla.org/ja/docs/Web/API/TextDecoder
#2021-01-21 19:40:51