<div dir="ltr"><div>more readable than a BOM you can use an encoding  comment as far as I can see for your use case</div><div><br></div><div>eg as listed here</div><div><br></div><div><a href="https://www.texdev.net/2011/03/24/texworks-magic-comments/">https://www.texdev.net/2011/03/24/texworks-magic-comments/</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 10 Jul 2019 at 12:07, Taylor, P <<a href="mailto:P.Taylor@rhul.ac.uk">P.Taylor@rhul.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div bgcolor="#FFFFFF">
Two related questions, the second dependent on the answer to the first.<br>
<ol>
<li>Is XeTeX happy with a BOM in UTF-8 files</li><li>Could TeXworks be enhanced to (a) recognise, and (b) insert if absent, a BOM in UTF-8 files ?</li></ol>
<p>The reason for my request is that while, on a day-to-day basis, I work solely in UTF-8, I have a suite of legacy (ISO-8859-1) files on which I need to continue to work.  No matter whether I configure TeXworks to operate by default in UTF-8 or ISO-8859-1,
 there invariably comes a time when I open a file of the other type, make a change (without noticing that some of the on-screen characters are wrong) and attempt to compile.  At that point, the file is saved with the wrong encoding, and unless I have an archival
 copy, all is lost.<br>
</p>
<p>Philip Taylor<br>
</p>
</div>

</blockquote></div>