# How to fix Package inputenc Error: “Unicode char \u8:ï¿½ not set up for use with LaTeX.”?

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

• 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 '15 at 10:43
• You probably have a spurious U+FFFD character somewhere. – egreg Feb 25 '15 at 10:43

## 2 Answers

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.

• yes it is the solution worked for me. – tod Nov 8 '15 at 13:51
• this might be helpful to some people coming here, not sure which bib entry is the problem. – LondonRob Feb 2 '18 at 17:57

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)".