Biber 2.11: Data file ... cannot be read in encoding UTF-8 ... ill-formed UTF-8 octet sequence ... at ... Slurper.pm line 63

As explained in https://github.com/plk/biber/issues/226 the underlying library that Biber uses to read .bib files does not provide a line number for the error. So Biber can't tell you the place of the error.

Usually the problem is simply that the entire file does not have the guessed/declared encoding. Note that the entire file content matters, so even the comments could be an issue.

For the MWE the .bib file must be encoded in UTF-8 (or a compatible encoding like US-ASCII). Even without the explicit bibencoding=utf8, biblatex would guess from the \usepackage[utf8]{inputenc} that you are using UTF-8, and if your LaTeX is newer than 2018-04-01, UTF-8 would even be assumed without inputenc since it is the standard now.

If a .bib file acts up, you should go through the following steps.

  1. Determine which encoding it should have (usually UTF-8 is a good idea, but if you have declared a different encoding in your .tex file, biblatex will normally assume that your .bib file uses the same encoding, of course that can be overridden with bibencoding).
  2. Find out which encoding your .bib file actually has.
  3. If the encodings don't match, you need to recode your .bib file or tell biblatex to try a different encoding.

It may work to just copy and paste the contents of your .bib file to a new file that is explicitly set up as UTF-8.


I ran into the same problem. Instead of using a text editor, I opened the .bib file in jabref. You can change the library encoding using 'Library Properties' from the 'File' menu. Then save the library. This also changed the encoding specification on the first line of the .bib file, which I would otherwise have had to change manually (when I would have used the text editor).

Tags:

Biblatex

Biber