English
Unicode
Strings are probably the most common and most underestimated data type in software. This topic starts from the historical baggage of Unicode and follows it into the bugs and vulnerabilities it causes in programming languages, databases, operating systems, fonts and terminals.
Translation in progress
The English version of this topic is being translated. Translated pages appear in the sidebar; the full text is available in Traditional Chinese.
Questions you should be able to answer afterwards
- Why is
"👨👩👧".length8 in JavaScript, 5 in Python and 1 in Swift? - Why can't MySQL's
utf8store emoji, so you needutf8mb4? And how can that difference lead to XSS? - Why can "validate, then normalize" be bypassed?
- Why does the same Han character look different on Traditional Chinese, Simplified Chinese and Japanese web pages?
- Why can
cat-ing a log file straight to your terminal be dangerous?