3

I have tried \DeclareUnicodeCharacter{211D}{\mathbb{R}} after reading the previously proposed solutions. Yet, my problem still remains and I am stuck. Please help!

Thanks,

Lucas

David Carlisle
  • 757,742

2 Answers2

8

U+202F is NARROW NO-BREAK SPACE so you probably want

\DeclareUnicodeCharacter{202F}{\,}
David Carlisle
  • 757,742
  • I used this to replace the faulty unicode value by a random character (e.g. _) in order to identify visually in the generated pdf. It's a hack but it helper me fix my compilation errors. – Manuel Leduc Nov 29 '17 at 14:44
2

In my case \DeclareUnicodeCharacer{202F}{\,} did not work, instead I got multiple errors about forgotten $ and }.

The reason was that the 202F Unicode Character was inside my .bib file generated with Zotero.

The following command from this answer helped me identifying the source, it was a space in a publication title containing "500 m":

\usepackage{inputenc}
\makeatletter
\def\UTFviii@defined#1{%
    \ifx#1\relax
    !!FIXME!!%
    \else
    \expandafter#1%
    \fi
}
\makeatother
psalt
  • 121