[Tex/LaTex] How to fix Package inputenc Error: “Unicode char \u8:� not set up for use with LaTeX.”

input-encodings

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

Best Answer

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.