Fix images not appearing (iconv encoding issue)
Fixed by returning the original buffer from `fs.read` and then just using whatever encoding was passed in to iconv, so this should all work exactly the same now as it does on native Node.
This commit is contained in:
@ -10,7 +10,7 @@ class IconvLiteDecoderStream extends Transform {
|
||||
super(options);
|
||||
// tslint:disable-next-line no-any
|
||||
this.conv = (iconv as any).getDecoder(options.encoding, undefined);
|
||||
options.encoding = this.encoding = "utf8";
|
||||
this.encoding = options.encoding;
|
||||
}
|
||||
|
||||
// tslint:disable-next-line no-any
|
||||
|
Reference in New Issue
Block a user