RSS + iconv-lite result still garbled

RSS which i want to track using gbk encode, it will show garbled on result,
So im trying using iconv-lite, but the result still garbled, i dont know which part im wrong, its my code

export const code = async (inputs) => {
    const iconv = require('iconv-lite');
    var Buffer = require('buffer').Buffer;

    const inputText = inputs.title;
    const buffer = Buffer.from(inputText, 'binary');
    return iconv.decode(buffer, 'gbk');
};

BTW, i already try change last line gbk to utf8, also garbled
Its my rss try to catch: https://www.52pojie.cn/forum.php?mod=rss&fid=2

Any answer here please? :sob:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.