.. _bidirectional-unicode: bidirectional-unicode / E2502 ============================= **Message emitted:** ``Contains control characters that can permit obfuscated code executed differently than displayed`` **Description:** *bidirectional unicode are typically not displayed characters required to display right-to-left (RTL) script (i.e. Chinese, Japanese, Arabic, Hebrew, ...) correctly. So can you trust this code? Are you sure it displayed correctly in all editors? If you did not write it or your language is not RTL, remove the special characters, as they could be used to trick you into executing code, that does something else than what it looks like. More Information: https://en.wikipedia.org/wiki/Bidirectional_text https://trojansource.codes/* **Problematic code:** .. literalinclude:: /data/messages/b/bidirectional-unicode/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/b/bidirectional-unicode/good.py :language: python Created by the `unicode_checker `__ checker.