X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Flink-helper.js;h=93a947be58f284d63939000f5f342a3bf4fc5770;hp=2b6a8334acce4b8c879448093fc1a522b5629380;hb=fddda3a0f044d889dfa70781d2f415f2d5f64169;hpb=f10a4ea1e43a9a37306f35677d4d6c7ccb98e894 diff --git a/src/link-helper.js b/src/link-helper.js index 2b6a833..93a947b 100644 --- a/src/link-helper.js +++ b/src/link-helper.js @@ -60,7 +60,7 @@ class LinkHelper { if (nonUTF8Charset) { const iconv = new Iconv(nonUTF8Charset, 'utf-8//translit//ignore'); try { - body = iconv.convert(body); + body = iconv.convert(body).toString('utf8'); } catch (e) { /* istanbul ignore next */ this.logger.error(_scope, 'iconv conversion error', { error: e, contentType, url });