I get the following error but I cannot locate the unicode character
Package inputenc Error: Unicode char (U+202F)
TeXLive: 2017
OS: Linux Debian Stretch 9.1
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI get the following error but I cannot locate the unicode character
Package inputenc Error: Unicode char (U+202F)
TeXLive: 2017
OS: Linux Debian Stretch 9.1
it is narrow no-break space so hard to spot but you can do
\DeclareUnicodeCharacter{202F}{FIX ME!!!!}
If you want to just find it or
\DeclareUnicodeCharacter{202F}{\,}
If you want to define it to something plausible.
\makeatletter
before, and \makeatother
after this definition: \def\UTFviii@defined#1{\ifx#1\relax!!FIXME!!\else\expandafter#1\fi}
Oct 18, 2017 at 11:56
If you insert the following code in the preamble (after loading inputenc
), the text !!FIXME!! will appear wherever an undeclared unicode character occurred.
\makeatletter
\def\UTFviii@defined#1{%
\ifx#1\relax
!!FIXME!!%
\else
\expandafter#1%
\fi
}
\makeatother
(Reference: This macro is defined in utf8.def
. Run texdoc utf8ienc
for the package documentation. Since the package could change in the future, this hack may also stop working in the future; so beware!)