feed-read icon indicating copy to clipboard operation
feed-read copied to clipboard

the validate function returns false for utf-16le encoded feeds

Open eRGoon opened this issue 11 years ago • 0 comments

I just convert all utf-16le encoded feeds to utf-8

if (enc && enc.toLowerCase() === "utf-16le") {
    var chars = [];

    for (var i = 0, l = body.length; i < l; i += 2) {
        chars.push(body.charCodeAt(i) | (body.charCodeAt(i + 1) << 8));
    }

    body = String.fromCharCode.apply(String, chars);
}

eRGoon avatar Aug 02 '13 22:08 eRGoon