10

I get following error when running pdflatex in TeXstudio: "Package inputenc Error: Unicode char \u8:� not set up for use with LaTeX. \end" on the last line of my document:

\printbibliography
\end{document}        <- error comes here
3
  • Welcome to TeX.SX! Please provide a compilable code of your document. It should be as short as possible while showing your error. If the error is part of the bib, we need to see the culprit entries as well. Like this, we would be guessing around.
    – LaRiFaRi
    Commented Feb 25, 2015 at 10:43
  • You probably have a spurious U+FFFD character somewhere.
    – egreg
    Commented Feb 25, 2015 at 10:43
  • A similar issue, regarding incompatible (spurious) character encoding, can be found with more details in "inputenc Error: Unicode char \u8 error while trying to write a degree symbol (invisible character)" (tex.stackexchange.com/questions/4268/…). Commented Nov 3, 2019 at 23:31

1 Answer 1

16

I managed to fix this on my own.

The problem was that my .tex file used utf-8 encoding, but my .bib file used ANSI-encoding. The error presented itself, when I added a bibliography entry which contained an apostrophe. To fix this I converted the .bib file to utf-8 encoding with Notepad++ and removed the files produced by pdflatex (aux, .bbl, .bcf etc.) and then ran pdflatex again.

2
  • 2
    this might be helpful to some people coming here, not sure which bib entry is the problem.
    – LondonRob
    Commented Feb 2, 2018 at 17:57
  • May happen when copy-pasting accented text from e.g. .pdf to a .tex or .bib, it looks perfectly good, yet is different than what latex expects. The key is to run pdflatex in the terminal, it shows exactly what character it is, then just search/replace with your typed version of the same character.
    – rfabbri
    Commented Apr 1 at 2:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .