[openstreetmap/openstreetmap-website] Changeset tags exceed limit of 255 unicode codepoints (Issue #6350)
Tom Hughes
notifications at github.com
Mon Aug 25 14:26:13 UTC 2025
tomhughes left a comment (openstreetmap/openstreetmap-website#6350)
The TAG SPACE characters may well behave weirdly in Java because they're outside the BMP so while they are one codepoint they will need to be encoded as a surrogate pair in the UTF-16 encoding that Java uses so there will be two UTF-16 values for each one which would add an extra four to the length.
You probably want to use `String.codePointCount` instead of the normal length function.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6350#issuecomment-3220518480
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6350/3220518480 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250825/ef4826e4/attachment.htm>
More information about the rails-dev
mailing list