LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ biblatex unicode error Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
jnabasny
Posts: 2
Joined: Mon Jan 13, 2020 3:40 am

biblatex unicode error

I'm getting a strange unicode error that I've traced back to the bib file. Whenever I try to cite this one online source, I get two unicode-related errors even though there aren't any special symbols in the bib entry. These are the errors, which both get triggered by the \autocite and \printbibliography lines:

! Package inputenc Error: Unicode character  (U+0080)
(inputenc) not set up for use with LaTeX.

! Package inputenc Error: Unicode character  (U+0099)
(inputenc) not set up for use with LaTeX.

My TeX code:

\documentclass{book} \usepackage[utf8]{inputenc}\usepackage[notes,strict,backend=biber,autolang=other,%bibencoding=latin1,booklongxref=false,compresspages]{biblatex-chicago}\addbibresource{biblio.bib} \begin{document} Test.\autocite{gs:pci} \printbibliography \end{document}

The bib entry:

@Online{gs:pci, title = {Translation: Chapter 1 of Simondon’s Psychic and Collective Individuation}, organization = {Speculative Heresy}, url = {http://speculativeheresy.wordpress.com/2008/10/06/translation-chapter-1-of-simondons-psychic-and-collective-individuation/}, urldate = {2008-10-06}, shorttitle = {Chapter 1 of Simondon},}

I've tried erasing each line of the bib entry separately to pin-point the problem, but I seem to get an error every time regardless. I appreciate any tips you can share on resolving this issue!

Ijon Tichy
Posts: 265
Joined: Mon Dec 24, 2018 10:12 am
Why do you use latin1 to encode you bib-file? One of the advantages of bblatex + biber is, that you can use utf8 for all files, even the bib-file. Here
\begin{filecontents*}{\jobname.bib}@Online{gs:pci,title = {Translation: Chapter 1 of Simondon’s Psychic and Collective Individuation},organization = {Speculative Heresy},url = {http://speculativeheresy.wordpress.com/2008/10/06/translation-chapter-1-of-simondons-psychic-and-collective-individuation/},urldate = {2008-10-06},shorttitle = {Chapter 1 of Simondon},}\end{filecontents*}\documentclass{book} %\usepackage[utf8]{inputenc}% Not needed with LaTeX since 2018-04-01.\usepackage[notes,strict,backend=biber,autolang=other,%%bibencoding=latin1,% The bib file ist utf8-encoded now.booklongxref=false,compresspages]{biblatex-chicago}\addbibresource{\jobname.bib} \begin{document} Test.\autocite{gs:pci} \printbibliography \end{document}

works without any error. However, I would replace the ’ by '. This should also solve your problem, if the bib-file is really latin1-encoded (but you should be sure, that this is the case!).

jnabasny
Posts: 2
Joined: Mon Jan 13, 2020 3:40 am
That worked, thanks Ijon!

I'm new to latex and took the preamble line from a tutorial. I completely overlooked the fact that it was calling a different kind of encoding.