synzen / MonitoRSS

MonitoRSS RSS bot (formerly known as Discord.RSS) with customizable feeds. https://monitorss.xyz
https://monitorss.xyz
MIT License
1.07k stars 238 forks source link

Wrong encoding for titles in cyrillic #151

Closed hristov296 closed 4 years ago

hristov296 commented 4 years ago

Describe the bug The title of the new post appears with the wrong encoding, if it is in cyrrilic

To Reproduce Steps to reproduce the behavior:

  1. Subscribe to an rss, which is in a cyrrilic language.(for example ~rssadd https://www.novinite.bg/rss.php)
  2. Upon receiving new post, it will appear wrongly encoded.

Screenshots image

Branch (please specify one): public bot

Additional context I could try implement a fix, if someone can point me to the correct file

synzen commented 4 years ago

Thanks for the report. Please specify the branch as required on the Issue Template:

Branch (please specify one): master, dev, or public bot

Given that you used ~rssadd, I'm guessing that you are either on master or the public bot

hristov296 commented 4 years ago

Ah sorry, yes it's the public bot. I just added it to my server, didn't clone from github.

synzen commented 4 years ago

The feed should properly show now on the public bot: image

For the record, if self hosting, this is done by adding to the config.feeds.decode - the URL is the key, and the encoding is the value. Otherwise the bot owner must specify the encoding for any relevant feeds