thingbomb / feedbomb

A minimalistic, fast RSS reader for the web.
https://www.feedbomb.app
GNU General Public License v3.0
31 stars 4 forks source link

Problem with text encoding #3

Closed vorons closed 1 month ago

vorons commented 2 months ago

2024-09-10 09-21-00

georg-stone commented 1 month ago

Could you please provide the RSS feed URL so I can take a closer look and debug this issue?

vorons commented 1 month ago

Could you please provide the RSS feed URL so I can take a closer look and debug this issue?

https://nnmclub.to/forum/rssp.xml

georg-stone commented 1 month ago

Hmmm... based on my testing, the server successfully fetches the feed, but the response contains those unknown character symbols. This suggests there may be an issue with character encoding on the server or the feed source.

vorons commented 1 month ago

Sorry for the delayed response.

This RSS feed uses the windows-1251 encoding:

<?xml version="1.0" encoding="windows-1251"?>

But the rss-parser library only supports those encodings that are natively supported by NodeJS:

https://stackoverflow.com/questions/14551608/list-of-encodings-that-node-js-supports

The developers of rss-parser suggest using iconv, but I'm not sure it's a good idea.

georg-stone commented 1 month ago

Thank you so much! The latest version fixes this issue and works with this text encoding.