[XeTeX] xetex doesn't recognize/replace all invalid utf8 bytes

Herbert Schulz herbs at wideopenwest.com
Wed Dec 30 00:05:17 CET 2009

On Dec 29, 2009, at 4:49 PM, Ross Moore wrote:

> But beware, if you edit anything and resave within the TeXshop shell,
> then the encoding can be converted to something else.
> Then the errors go away, as the file has changed --- which, of course,
> is a disaster for the intended information.


How about using the line

% !TEX encoding = xxxxxx

where xxxxxx is IsoLatin (for Latin1), MacOSRoman (for Mac OS Roman) and UTF-8 Unicode (for ...) near the top of the file BEFORE saving. Will that save it in the encoding you want?

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

More information about the XeTeX mailing list