9

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
    Feb 25, 2015 at 10:43
  • You probably have a spurious U+FFFD character somewhere.
    – egreg
    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/…). Nov 3, 2019 at 23:31

1 Answer 1

15

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.

1
  • 1
    this might be helpful to some people coming here, not sure which bib entry is the problem.
    – LondonRob
    Feb 2, 2018 at 17:57

You must log in to answer this question.

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