Better than counting bytes would be e.g.,
wcswidth (3) - determine columns needed for a fixed-size wide-character string
Anyway, it’s like “Choose your avatar” and they are somebody else’s race and gender.
And you know what, I thought I already posted a reply to this, via email. But I think the topic got reassigned while I was offline. So when the email arrived at Discourse, there was no place to post it, so it went into the bitbucket. So I have discovered a bug. At least the user should get a bounce message.
Search results for 'wcswidth' - Discourse Meta only finds this one reply. My other email posts arrived fine, but not the one where I mentioned wcswidth. That must be due to the topic change etc.
I’m fine with the topic change. But the system should be sure to email back to the user telling him/her that their post failed… due to…
OK, I can confirm sending a message to an already closed topic does result in a rejection email (but it throws away the body the user typed!) but for topic changes, etc. it seems the email is thrown away.