On Mon, 22 Feb 2021 at 01:28, Ross Moore <ross.mo...@mq.edu.au> wrote:
> Hi Jonathan, and others. > > > There’s actually a pretty easy fix, at least for XeLaTeX. > The package contains 2 files only: xstring.sty and xstring.tex . > The .sty is just a 1-liner to load the .tex . > > It could be beefed up with: > > \RequirePackage{ifxetex} % is this still the best package for > \ifxetex ? > \ifxetex > \XeTeXdefaultencoding "iso-8859-1" > \input{xstring.tex} > \XeTeXdefaultencoding "utf8" > \else > \input{xstring.tex} > \fi > > That would sort of work but be a suboptimal fix, it imposes a run-time test on everyone just to save the file in a legacy encoding when saving the file as utf-8 (or as ascii with accents shown as commands) has no run time cost and places the file in the default text encoding used by almost all current systems. David