openstreetmap-website
openstreetmap-website copied to clipboard
User preferences accepts only ASCII data
URL
https://api.openstreetmap.org/api/0.6/user/preferences/test
How to reproduce the issue?
I noticed this with emoji values, and verified it with a ć character.
curl -X PUT -d ‘👀’ https://api.openstreetmap.org/api/0.6/user/preferences/test Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
Screenshot(s) or anything else?
No response
I guess that for now https://en.wikipedia.org/wiki/Punycode or similar can be used as workaround (see https://github.com/bryceco/GoMap/commit/f79fc77ffd07e75c3ff2d761a13bbbe02e3a2cab where % encoding was used)
See https://github.com/openstreetmap/openstreetmap-website/issues/4467#issuecomment-1885739614 on why this fails.
Fixed in #4803.