Zero Width Joiner (ZWJ)
U+200D. Bitişik karakterlerin birleştirilmesini ister. Emoji dizileri için kritik (👩+ZWJ+💻=👩💻). Hint alfabelerinde bitişik harf oluşturma ister. Metin sınırlarını da gizleyebilir.
What is ZWJ (Zero Width Joiner)?
ZWJ stands for Zero Width Joiner, encoded at U+200D. It is an invisible Unicode character with no visual representation of its own. Its purpose is to join adjacent characters in a way that signals to rendering software: "treat these as a combined unit." ZWJ has zero width — it takes up no space in the rendered output — but it influences how surrounding characters are shaped, ligated, or combined into a single graphical form.
ZWJ is used in two distinct but related contexts: script ligature control in complex scripts, and emoji sequence formation in modern Unicode.
ZWJ in Script Ligatures
In scripts like Arabic, Devanagari, and Sinhala, characters change shape depending on their position in a word and their neighboring characters. ZWJ instructs the rendering engine to use the "joining" or "connected" form of a character even when the natural context would produce a non-joining form.
For example, in Arabic, the letter ـه (ha in final form) would normally appear in isolated form at the end of a word. Inserting a ZWJ before it signals that it should render in its connected form, as if it were still attached to the next character in a ligature.
ZWJ in Emoji Sequences
In modern Unicode, ZWJ is best known as the mechanism for creating emoji ZWJ sequences — composite emoji formed by joining multiple base emoji with ZWJ characters between them. When a rendering platform supports the sequence, it displays a single combined image. When it does not, it falls back to displaying the individual emoji separately.
Well-known ZWJ sequences include:
- Family emoji —
👨👩👧👦is encoded as: MAN + ZWJ + WOMAN + ZWJ + GIRL + ZWJ + BOY (U+1F468 U+200D U+1F469 U+200D U+1F467 U+200D U+1F466) - Profession emoji —
👨💻is MAN + ZWJ + LAPTOP (U+1F468 U+200D U+1F4BB) - Gendered roles —
👮♀️is POLICE OFFICER + ZWJ + FEMALE SIGN + VARIATION SELECTOR - Rainbow flag —
🏳️🌈is WHITE FLAG + VARIATION SELECTOR + ZWJ + RAINBOW
The number of possible ZWJ sequences grows with each Unicode release as new combinations are approved by the Unicode Emoji Subcommittee.
ZWJ and Grapheme Clusters
Unicode defines the concept of a grapheme cluster — the user-perceived unit of text, what a user thinks of as "one character." ZWJ sequences form an extended grapheme cluster that counts as a single unit for cursor movement, text selection, and deletion. Pressing backspace on a ZWJ sequence like 👨💻 deletes the entire combined emoji, not just the final code point.
This has implications for string processing in programming languages. In Python, len("👨💻") returns 3 (three code points: man, ZWJ, laptop), but the user-visible length is 1. Proper grapheme-cluster-aware libraries are needed for accurate text metrics.
ZWJ as an Invisible Character (Security Note)
Because ZWJ is invisible and zero-width, it can be used to insert hidden content into text strings. Two strings that look identical to a human reader may have different ZWJ placements and therefore differ when compared byte-for-byte. This has been used in digital watermarking (to tag documents with invisible identifiers) and, maliciously, to bypass string-matching filters.
Quick Facts
| Property | Value |
|---|---|
| Code point | U+200D |
| Name | ZERO WIDTH JOINER |
| Unicode category | Cf (Format character) |
| Visual width | Zero — completely invisible |
| Primary modern use | Emoji ZWJ sequences |
| Script use | Arabic, Devanagari, Sinhala ligature control |
| Grapheme cluster | ZWJ sequences form a single extended grapheme cluster |
| Introduced | Unicode 1.1 (1993) |
İlgili Terimler
Güvenlik içinde daha fazlası
Exploiting Unicode bidirectional control characters to disguise malicious code or filenames. The …
Farklı alfabelerden özdeş veya çok benzer görünen karakterler, örneğin Latin 'a' ve …
Alan adlarında görsel olarak benzer Unicode karakterler kullanarak meşru siteleri taklit etme. …
Unicode'un görsel olarak karıştırılabilecek karakter çiftleri için resmi terimi, confusables.txt (UCD) dosyasında …
Farklı alfabelerden karakterleri karıştıran metni tanımlama (örn. Latin + Kiril). Homoglyph saldırılarına …
Exploiting Unicode normalization to bypass security filters. Input validated before normalization may …
Kullanıcıları aldatmak için Unicode özelliklerini kullanma: sahte alan adları için homoglyph'ler, sahte …
U+200C. Bitişik karakterlerin birleşmesini önler. Farsça/Arapça'da doğru harf biçimleri için ve Devanagari'de …
Unicode çift yönlü geçersiz kılma karakterlerini (U+202A–U+202E, U+2066–U+2069) kullanarak kötü amaçlı dosya …