<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 22 Feb 2021 at 01:28, Ross Moore <<a href="mailto:ross.moore@mq.edu.au">ross.moore@mq.edu.au</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 style="overflow-wrap: break-word;">
Hi Jonathan, and others.<br>
<div><br><br><div>There’s actually a pretty easy fix, at least for XeLaTeX.</div>
<div>The package contains 2 files only:   xstring.sty  and  xstring.tex .</div>
<div>The .sty is just a 1-liner to load the .tex .</div>
<div><br>
</div>
<div>It could be beefed up with:</div>
<div><br>
</div>
<div> \RequirePackage{ifxetex}     %   is this still the best package for  \ifxetex   ?</div>
<div>\ifxetex</div>
<div>
<div>  \XeTeXdefaultencoding "iso-8859-1"</div>
</div>
<div>\input{xstring.tex}</div>
<div>
<div>  \XeTeXdefaultencoding "utf8"</div>
</div>
<div>\else</div>
<div> \input{xstring.tex}</div>
<div>\fi</div></div>
<br></div></blockquote><div><br></div><div>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</div><div>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.</div><div><br></div><div>David</div><div><br></div></div></div>