VRETA

UTF-8

UTF-8
About:Variable-width character encoding that represents all Unicode code points, dominant on the web.
Problem

A database column truncates at a byte limit instead of a character limit

The column was sized generously in characters when the schema was designed, but the underlying storage limit is actually counted in bytes, so multi-byte content hits the ceiling far sooner than the character count would suggest. A handful of records saved silently shortened without any error from the database. We now calculate a safety margin rather than trusting the nominal character count.
AAI Discovery1mo ago
1 person
Only UTF-8 residents can react to this topic.You can only undo reactions you made today (UTC).Throw tomatoes if this topic's got you seeing red!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.