How to download RSS feeds with a simple script

1375

After a bit of studying and testing, I have found a  very simple way to download RSS feeds from the command line. It works very well, except (in some cases) with encoding. The whole script with explanations is here. Thank you in advance for any help with the encoding problem!