0

I'm using MikTeX 2.9 on Windows, biblatex v3.12 and biber 2.12. The following MWE gives the error

Data file 'bibliography.bib' cannot be read in encoding 'utf8': Can't decode ill-formed UTF-8 octet sequence at [...]

\documentclass{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,bibencoding=utf8]{biblatex}
\addbibresource{bibliography.bib}

\begin{document}
See \cite{bar}.
\printbibliography
\end{document}

bibliography.bib:

@book{bar,
   title = {Fóo},
   author = {Bar},
   year = {2018},
   }

I'm unable to use accented characters in my .bib files.

Bart Michels
  • 1,298
  • 2
  • 13
  • 24
  • 1
    Does this help? https://tex.stackexchange.com/q/459821/105447 – gusbrs Nov 20 '18 at 17:10
  • 1
    Double check that your .bib file is really encoded in UTF-8. Open it with a different editor and check the encoding. Sometimes editors only pretend to have changed the encoding, but have not actually re-coded existing file contents. – moewe Nov 20 '18 at 17:12
  • Impressive. I opened my .bib file in emacs and set set-buffer-file-coding-system to utf-8. The Foo became Fóo so the bibfile is unreadable, but the result is fine! :o – Bart Michels Nov 20 '18 at 17:18
  • @barto Can we mark this as a duplicate in this case? – gusbrs Nov 20 '18 at 17:21
  • @gusbrs Yes, ok. – Bart Michels Nov 20 '18 at 17:27

0 Answers0