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

Stefan Löffler st.loeffler at gmail.com
Sat Jul 13 17:46:20 CEST 2019

On 10.07.19 13:14, David Carlisle wrote:
> 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/

I agree that for Tw, a magic comment is probably the best (and most
readable) option.
For the sake of completeness, there is also "Write UTF-8 byte order
mark" entry in the encoding menu (when you click on the third item from
the right in the status bar) that you could try. Since UTF-8 is
typically set as default in Tw, however, it does not really help you to
detect other encodings (as the absence of a BOM does not automatically
mark the document as non-UTF8).


More information about the texworks mailing list