Hi!
When using UTF-8 chars (multi-byte ones, I assume), there's inconsistency in the "characters left" indication. I'm using mastodon.xyz which is in 1.4.7, problem still exists in 2.5.0rc1
When I submit the edited changes, the value that comes back it's smaller than the one that it's calculated by the frontend.
master
(If you're a user, don't worry about this).The issue is that server-side bio character counts endlines as two characters, whereas client-side count it as one character.
For example:
t
t
t
This is particularly annoying when writing a bio with several endlines, because you can write a bio with the client-side code reporting that it fits into the character limit, but then rejected because the server-side code counted more characters.
Please rename the issue 芦Server- and client-side bio count endlines and emoji combinations inconsistently禄 or something like that.
The issue is the same with the display name, so I guess it鈥檚 the same code that must be fixed.
The OSes in play will likely have an influence on this...