0x9d is a non-printing character.
https://www.fileformat.info/info/unicode/char/9d/index.htm
copy it (yes, it is invisible) and search for it in your source.
"cp1252" is a (Windows) "code page", which I have never totally grokked, and
goes back to DOS (I think). We might be missing a UTF-8 encoding.
My assistant just confirmed, and is on it.
Rob
> m/2t6UHUHQAAAJ <
https://groups.google.com/g/pretext-support/c/
> xstrmXP_Tns/m/2t6UHUHQAAAJ>
>
> I think it might be the TM character. Maybe the one supplied by
> PreTeXt is causing trouble? I'll try removing any instances of it.
>
> But it seems like this error should not be fatal: PDF builds
> successfully, but the CLI refuses to copy it over.
>
> On Tue, Jul 28, 2026, 2:34 a.m. Valerio Monti
> <
valeriom...@gmail.com> wrote:
>
>
> I reported an issue with charmap on Windows when building an
> EPUB from a source containing a <q> tag:
>
>
https://groups.google.com/g/pretext-dev/c/vyA57GFN8IY/m/
> codAj23uBgAJ <
https://groups.google.com/g/pretext-dev/c/
> vyA57GFN8IY/m/codAj23uBgAJ>
> > INFO : successful application of C:\Users\Sean
> > Fitzpatrick\.ptx\2.45.0\core\xsl\utilities\report-
> publisher-variables.xsl
> > FATAL : 'charmap' codec can't decode byte 0x9d in
> position 63479:
> > character maps to <undefined>
> > INFO : ------------------------
> > FATAL : Failed to build without errors. Exiting...
> >
> > (Except it doesn't exit at this point! It builds the PDF,
> and then insists
> > that it didn't.)
> >
> > How do I go about tracking down the place in my source
> where the offending
> > byte is?
> >
> > --
> > You received this message because you are subscribed to
> the Google Groups
> > "PreTeXt support" group.
> > To unsubscribe from this group and stop receiving emails
> from it, send an email
> > to
pretext-suppo...@googlegroups.com <mailto:
pretext-
> >
support+u...@googlegroups.com>.
> > To view this discussion visit
https://groups.google.com/
> d/msgid/pretext-support/ <
https://groups.google.com/d/msgid/
> pretext-support/>
> > f5fdcdd8-daa3-4d09-a7f9-0908d829d101n%
40googlegroups.com
> <
http://40googlegroups.com> <https://
> >
groups.google.com/d/msgid/pretext-support/f5fdcdd8-
> daa3-4d09- <
http://groups.google.com/d/msgid/pretext-
> support/f5fdcdd8-daa3-4d09->
> > a7f9-0908d829d101n%
40googlegroups.com?
> utm_medium=email&utm_source=footer
> <
http://40googlegroups.com?
> utm_medium=email&utm_source=footer>>.
>
> --
> You received this message because you are subscribed to the
> Google Groups "PreTeXt support" group.
>
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
pretext-suppo...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/
> pretext-support/e4c973d2-274c-405b-8355-
> f5239c264760n%
40googlegroups.com <
https://groups.google.com/d/
> msgid/pretext-support/e4c973d2-274c-405b-8355-
> f5239c264760n%
40googlegroups.com?
> utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> support/6d9bc6ce-d6e9-4045-a757-308a3ba8f316n%
40googlegroups.com <https://
>
groups.google.com/d/msgid/pretext-support/6d9bc6ce-d6e9-4045-
> a757-308a3ba8f316n%
40googlegroups.com?utm_medium=email&utm_source=footer>.