I use SAS to access files. So i can get the files’ content by send a request.
But the problem is that i need to change the file’s encoding to SJIS.
so i’m trying to use Encoding.convert()
, according to this (https://github.com/polygonplanet/encoding.js/blob/master/README_ja.md)
After this I’m going to use
URL.createObjectURL(new Blob([sjiscontent], {type: "text.plain"}))
But I don’t know how to convert my blobs’ string context to a sjis utf8arrary properly.