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/3220518...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev