[texworks] [XeTeX] Use of BOM in XeTeX and TeXworks

Zdenek Wagner zdenek.wagner at gmail.com
Sat Jul 13 22:19:24 CEST 2019

Hi all,

I received files from other users with BOM in UTF-8 ans UTF-16 and
XeTeX correctly recognized them. Tested on Linux and Mac.

Zdeněk Wagner

st 10. 7. 2019 v 13:15 odesílatel David Carlisle
<d.p.carlisle at gmail.com> napsal:
> more readable than a BOM you can use an encoding  comment as far as I can see for your use case
> eg as listed here
> https://www.texdev.net/2011/03/24/texworks-magic-comments/
> On Wed, 10 Jul 2019 at 12:07, Taylor, P <P.Taylor at rhul.ac.uk> wrote:
>> Two related questions, the second dependent on the answer to the first.
>> Is XeTeX happy with a BOM in UTF-8 files
>> Could TeXworks be enhanced to (a) recognise, and (b) insert if absent, a BOM in UTF-8 files ?
>> 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.
>> Philip Taylor

More information about the texworks mailing list