<p></p>
<p>What about a popup warning about unsupported characters in the file to be opened, and offering to either remove them or abort editing?</p>
<p>AFAIK its just four code points:</p>
<pre><code>RLO (U+202E): treat the following text as right-to-left
LRI (U+2066): treat the following text as left-to-right, without affecting the surrounding text
RLI (U+2067): treat the following text as right-to-left, without affecting the surrounding text
PDI (U+2069): terminate the most recent LRI or RLI 
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2981#issuecomment-961756399">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2HYFVJRICNZMX64ALUKOR23ANCNFSM5HNK77TA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJYNII6OQLHLYAZPWPTUKOR23A5CNFSM5HNK77TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHFJTZ3Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2981#issuecomment-961756399",
"url": "https://github.com/geany/geany/issues/2981#issuecomment-961756399",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>