Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add charset parmater #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

fengkx
Copy link

@fengkx fengkx commented Mar 26, 2020

Add charset parmater to test different encoding

@fengkx
Copy link
Author

fengkx commented Mar 26, 2020

Heroku demo for this branch: https://rss-test-charset.herokuapp.com/

web.coffee Outdated Show resolved Hide resolved
web.coffee Outdated Show resolved Hide resolved
web.coffee Outdated Show resolved Hide resolved
@mbertolacci
Copy link
Owner

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.

@fengkx fengkx requested a review from mbertolacci April 25, 2020 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants