-
Notifications
You must be signed in to change notification settings - Fork 27
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
Issue with some characters #256
Comments
Confirmed. Adding some info to this. >>> import urllib.parse
>>> s =urllib.parse.unquote('http://127.0.0.1/library/gba/edit/Pok%C3%A9mon%20Pinball')
>>> s
'http://127.0.0.1/library/gba/edit/Pokémon Pinball'
>>> s.encode('iso-8859-1')
b'http://127.0.0.1/library/gba/edit/Pok\xe9mon Pinball' YAML file content should be encoded in Bottle should decode all parameters as utf-8. I would suggest to try to use the request class here but I only have a "production" setup here. Lines 196 to 203 in 29e59a0
content_id = request.query.name |
I came here to post this same issue. |
I took another crack at this and finally figured it out. The issue ended up being the use of the |
Noticed this when uploading a Pokemon ROM, the searches find it with the spelling "Pokémon" and that's how it writes the YAML file, but the web server doesn't seem to handle the "é" character cleanly and the resulting new entry produces an error 400 when trying to access it, "Sorry, the requested URL 'http://192.168.1.113/library/gba/edit/Pok%C3%A9mon%20Pinball' caused an error: Invalid path string. Expected UTF-8."
The YAML file has it formatted as home/gamer/.local/share/chimera/images/poster/gba/Pok\xE9mon Pinball.png
The text was updated successfully, but these errors were encountered: