# The Hidden Danger of Right-to-Left Decorative Characters in Web Typography

Original title: The footgun of right-to-left decorative characters

> Hacker News story 48813246 · language: en · submitted 2026-07-07
> Web version: https://zeli.app/story/48813246
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 17 · by [dado3212](<https://news.ycombinator.com/user?id=dado3212>) · 💬 7
[original](<https://blog.alexbeals.com/posts/the-footgun-of-right-to-left-decorative-characters>) · [HN discussion](<https://news.ycombinator.com/item?id=48813246>)

## Summary

I discovered that using the Manichaean Punctuation Fleuron as a decorative separator caused unexpected text reordering due to its right-to-left bidirectional type. This Unicode quirk rearranges surrounding digits and text, but the issue is easily fixed by wrapping the character in a <bdi> tag or applying specific CSS to isolate its directionality.

## Key quote

> Also they foolishly didn't allow post-deceased converts like some fast-growing religions.

## HN discussion (7 comments)

### [Georgelemental](<https://news.ycombinator.com/item?id=48868364>)

> If you are using plain text and don't have access to HTML or CSS markup, you can follow the RTL character with U+200E LEFT-TO-RIGHT MARK to achieve the same effect. And even if you do have access to those things, using U+200E ensures that operations that strip markup (like copy-paste) don't break your text.

### [dhosek](<https://news.ycombinator.com/item?id=48868205>)

> Mixing R-L and L-R scripts (as has been discussed here on many occasions) is a ripe arena for mysterious behavior. Given that even monolingual texts in R-L scripts will often include L-R characters, it can get hairy quickly. A desire to try to avoid having visible markers in text around the transitions is partly why the Unicode spec around bidi text is so complicated.

### [YokoZar](<https://news.ycombinator.com/item?id=48869682>)

> A fun hack I remember was that Windows internally used two left-to-right control characters in a window title as an indicator that the entire window should have its content flipped right to left, images and all (imagine a clock animation running counter-clockwise).
>
> This meant that if you could control the window title somehow you could create some surprising behavior, such as putting both those characters at the beginning of a post on a web forum and then having both the web page and browser look backward after someone opened the link.
>
> I believe most things filter for this now, of course.

---

## Cite

- Page: https://zeli.app/story/48813246
- Date: 2026-07-07
- Source: blog.alexbeals.com (https://blog.alexbeals.com/posts/the-footgun-of-right-to-left-decorative-characters)
- Hacker News: https://news.ycombinator.com/item?id=48813246

## Other languages

- zh: https://zeli.app/zh/story/48813246 · markdown: https://zeli.app/zh/story/48813246.md
- ja: https://zeli.app/ja/story/48813246 · markdown: https://zeli.app/ja/story/48813246.md
- ko: https://zeli.app/ko/story/48813246 · markdown: https://zeli.app/ko/story/48813246.md
- de: https://zeli.app/de/story/48813246 · markdown: https://zeli.app/de/story/48813246.md
- es: https://zeli.app/es/story/48813246 · markdown: https://zeli.app/es/story/48813246.md
