-
Notifications
You must be signed in to change notification settings - Fork 111
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
Encoding::InvalidByteSequenceError - "\xE2" on US-ASCII #103
Comments
The geojson data is UTF-8. It looks like you're inheriting a default encoding of C/US-ASCII from the EB environment. Best solution here is probably to just set the API's default encoding on startup, e.g. |
Bill - thanks for the help! Where would I do that, in pizza/api/v1/pizzerias.rb or somewhere else? |
Yep, I'd probably put it right after the last require in pizzerias.rb |
Awesome sauce! that worked - thanks! Please close. |
👍 |
Should this be something added to the repo in a PR, @abaird? |
yep, I'll push it out shortly |
Actually, I submitted a PR to clean up the indentation in the pizzerias.rb file. What is the best way to proceed? Should I submit a PR to change the external encoding assuming the indentation PR is accepted or something else? |
Merged that in. Feel free to submit and thanks! |
I'm trying to run the pizza server in some environment other than my local machine to do some load testing on it. After not being able to get it running on (AWS linux|AWS ubuntu)/nginx/unicorn, I decided to try AWS Elastic Beanstalk. I'm getting the following stack from Puma:
I tracked this down to several special characters in the pizza_map.geojson. For example
I'm researching fixes for this, but I'm posting here to see if anyone knows how to fix this faster than I do.
The text was updated successfully, but these errors were encountered: