this post was submitted on 25 May 2026
1301 points (99.2% liked)
Programmer Humor
31576 readers
2101 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Or, you could count it in Unicode characters, and not in whatever bizarro charset you're using over there. Then "À" is one character, just as it's supposed to be.
The problem typically comes from improper conversion between charsets. Like Windows-1252 to Unicode, or something equally horrible.
I was basically calculating in Javavscript then in PHP for validation before I sent it to Zoho.
The DB also was fine. It was honestly just PHP and Javascript. It's all good now though!
Not if the maximum is due to the database being configured to have a maximum space of 2000 bytes for that field.
Ah, well, bytes ≠ characters, but yes, that can certainly be an issue.