<p></p>
<p dir="auto">What does Geany detect the encoding as when it opens the file?</p>
<p dir="auto">The <code>0xF1</code> is a valid byte in more than one ISO-8859 encoding, eg its <code>ntilde</code> in ISO-8859-1.  So which encoding the file opens with is pseudo random (its implementation dependent) which succeeds first.</p>
<p dir="auto">This is why setting the encoding explicitly (<code>File->Open->More Options->SE&SW Asian->Turkish (ISO 8859-9)</code>) is available, for when encodings are ambiguous.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/3141#issuecomment-1081214377">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5XVXEIIZ4JT24L2FDVCIWYNANCNFSM5R3HC33Q">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ22OY2F5J2SX53IUFTVCIWYNA5CNFSM5R3HC332YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIBZALKI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/issues/3141/1081214377</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/3141#issuecomment-1081214377",
"url": "https://github.com/geany/geany/issues/3141#issuecomment-1081214377",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>