Bidirectional characters warning in Atlassian products

Atlassian Knowledge Base

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

The following message is displayed when hovering over highlighted unicode characters in Atlassian products including Bitbucket, Jira, Confluence, and others.

Bidirectional characters change the order that text is rendered. 
This could be used to obscure malicious code.

Here's an example of the message appearing in a code block in Confluence Data Center.

In mobile apps and mobile web views, the characters are displayed and highlighted, without the tooltip. 

Cause

Unicode bidirectional override characters are used to specify the order that characters should be displayed, for example to support right-to-left languages. These special characters are typically not displayed in the browser or code editors, but can affect the meaning of the source code when it is processed by a compiler or an interpreter. For this reason we display and highlight bidirectional characters so you can identify them in your code, or code snippets.

For more information see: 

Resolution

If you encounter bidirectional characters in a pull request, code snippet, or code block, we recommend you take some time to understand what the characters are doing, and how the code will be interpreted when executed.

You can learn more about these characters in the unicode specification.


DescriptionBidirectional character warning displayed on highlighted unicode characters in Atlassian products
ProductConfluence, Jira, Bitbucket, Trello, Fisheye, Crucible, Bamboo

Last modified on Oct 31, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.