Alt text measurement by web ui treats emojis as single characters but the backend treats them as bytes #29719
Labels
area/web interface
Related to the Mastodon web interface
bug
Something isn't working
status/to triage
This issue needs to be triaged
Steps to reproduce the problem
Draft a post
Add a picture
Click the alt button
Enter 1499
a
s and apply1499 'a's
Edit the alt text
add
Z
and applyEdit the alt text
Change the
Z
to ⬜️ and applyExpected behaviour
Character Counter that says I have
1
or0
characters left should be accurateActual behaviour
Error that isn't readable and isn't intuitive
Detailed description
422 Unprocessable Content
Mastodon instance
https://mastodon.social
Mastodon version
v4.3.0-nightly.2024-03-19
Browser name and version
Chrome 122.0.6261.129
Operating system
macOS 14.2.1
Technical details
The web client appears to count unicode characters and the backend appears to count bytes.
The text was updated successfully, but these errors were encountered: