lorem-rss
lorem-rss copied to clipboard
feat: add charset parmater
Add charset parmater to test different encoding
Heroku demo for this branch: https://rss-test-charset.herokuapp.com/
Thank you very much for this change, @fengkx.
I have provided some comments I'd love for you to fix before I merge the branch.
The other very important thing is, if the user provides an encoding that is not supported, they get this error:
Error: Encoding not recognized: 'sdfsdf' (searched as: 'sdfsdf')
I think it would be better if you added a check using iconv.encodingExists(charset) and send an official 500 error message if the encoding is not supported.