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

encoding error UTF-8 and ACSII-8BIT #18

Closed
kaluznyo opened this issue Jul 27, 2011 · 4 comments
Closed

encoding error UTF-8 and ACSII-8BIT #18

kaluznyo opened this issue Jul 27, 2011 · 4 comments

Comments

@kaluznyo
Copy link

When my params ( street => "street", locality => "Zürich") I have the following error message : incompatible character encodings: UTF-8 and ASCII-8BIT

if I put locality => Züriche (unexistant city), it's work.

For information, the problem may be in methode create_from_location (geocode.rb line 32). Remplace

create geocoder.locate(location).attributes.merge(:query => location.to_s)

by

create geocoder.locate(location).attributes.merge(:query => location.to_s.parameterize) #Replace accentutate chars by non-accentuate chars and it's works

I don't know if is the best way to fix this.

@bryckbost
Copy link
Contributor

Thanks for the heads up. Working on a fix.

@bryckbost
Copy link
Contributor

@kaluznyo: I've pushed some fixes for this and got the gem more up to date to play nice with Ruby 1.9. Are you able to use point your gemfile to master to see if this fixes your issue?

@kaluznyo
Copy link
Author

kaluznyo commented Aug 5, 2011

It seems to work fine now. Thanks !

@bryckbost
Copy link
Contributor

Cool. I'll push out a new release shortly.

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

No branches or pull requests

2 participants