<blockquote>
<p>if geany can't heuristically tell the encoding from contents like other files (does it do that? [...]</p>
</blockquote>

<p>Naively, and with a tendency towards common 8-bit encodings like ASCII, Latin-1, UTF-8, etc. Probably the only accurate detection is for files with a UTF byte order marker at the front and maybe XML files if they declares encoding before any non-ASCII characters..</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/780#issuecomment-160245085">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJzdfAQSCq7NME5tjkBKRkJiP_VJ8ks5pKR_9gaJpZM4GqokY.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/780#issuecomment-160245085"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>