On Thursday, October 29, 2015 at 11:49:24 AM UTC-7, Alex Glaros wrote: > > okay, I see from geoNames site that it's a special (Île-de-France) character: > http://www.geonames.org/search.html?q=94949+France&country= > > geoNames' native data looks like this: Île-de-France, and it sends me the > data in a dictionary that looks like: u'\xcele-de-France' > > is there a method for handling those characters? >
Well, you're basically stuck if you're trying to run it through an ASCII-only (7-bit codes) routine. If you can go through a UTF-8--aware routine, then you just have to make sure you've got the right routine. I don't know enough about how code pages work to give a useable answer, but sometimes you can use code pages to go from UTF-8 to 8-bit extended ASCII, and your current routine might be okay with that. Others on the group have more experience in code conversions, so you might watch for their posts. Dave /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

