[Javascript] Zero-width char
U+200B: Zero-width space
- Used for soft line breaks in long words.
U+FEFF: Zero-width non-breaking space
- Prevents line breaks at specific positions.
U+200D: Zero-width joiner
- Used in Arabic and Indic scripts to create joining effects between characters.
U+200C: Zero-width non-joiner
- Used in Arabic, German, and Indic scripts to prevent joining effects between characters.
U+200E: Left-to-right mark
- Used in mixed-directional text (e.g., left-to-right English mixed with right-to-left Hebrew) to specify that the text direction is left-to-right.
U+200F: Right-to-left mark
- Used in mixed-directional text to specify that the text direction is right-to-left.
U+200B : 零宽度空格符 用于较长单词的换行分隔
U+FEFF : 零宽度非断空格符 用于阻止特定位置的换行分隔
U+200D : 零宽度连字符 用于阿拉伯文与印度语系等文字中,使不会发生连字的字符间产生连字效果
U+200C : 零宽度断字符 用于阿拉伯文、德文、印度语系等文字中,阻止会发生连字的字符间的连字效果
U+200E : 左至右符 用于在混合文字方向的多种语言文本中(例:混合左至右书写的英语与右至左书写的希伯来语),规定排版文字书写方向为左至右
U+200F : 右至左符 用于在混合文字方向的多种语言文本中,规定排版文字书写方向为右至左
const str = 'a\u200Bb\u200Dc'
const str2 = 'abc'
console.log(str === str2) //false