Regarding RSS garbled characters

I tried to fetch the RSS feed from https://www.52pojie.cn/forum.php?mod=rss&fid=2, but the information I got is garbled. I also tried using iconv-lite with the following 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');
};

But it is still garbled. Can someone help me solve this?

Anyone can help? Im still stuck here.

Hello @Johnny_Wong , I’m looking into this issue.

1 Like

Is there any progress on this? Is it possible to set the encoding when retrieving the RSS feed?