VRETA

UTF-8

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

A case conversion routine built for single-byte text mangles anything else

Uppercasing a field for a comparison silently corrupts any multi-byte character it touches, because the routine was written assuming each character occupies exactly one byte. The bug only affects a minority of records, which is exactly why it went unnoticed through several releases. We replaced it with a library call that understands multi-byte sequences properly.
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.