1

I use biblatex with biber. My bibliography is automatically exported by Zotero. My editor is texmaker on debian. Unfortunately characters are included into the bib file latex is unable to decode. I get the Error: ! Package inputenc Error: Unicode char \u8: not set up for use with LaTeX.

How can I find the bad character, or what else can I do to prevent the problem?

Edit: My Preamble

\documentclass[a4paper, 12pt]{scrreprt}


\usepackage[ngerman,english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{newunicodechar,textgreek}

\usepackage{csquotes}
\usepackage{setspace}
\onehalfspacing
\usepackage{graphicx}

\usepackage{booktabs}
\usepackage{array}
\usepackage{tabularx}
\usepackage{rotating}
\usepackage[table]{xcolor}

\usepackage{biocon}         
\usepackage[english]{varioref}
\usepackage[
    style=authoryear, 
    backend=biber,
    isbn=false,
    doi=false,
    url=false,
    maxcitenames=2,
    maxbibnames=7,
    minbibnames=5,
    uniquename=false,
    uniquelist=false,
    firstinits=true
    ]
    {biblatex}
  • Depending on what the character is, it might be enough to just use \usepackage[utf8]{inputenc}. – Sverre Aug 13 '14 at 13:48
  • 2
    Please have a look into your logfile: above your error message you should see the line causing the given error. There you will see the bad character ... – Kurt Aug 13 '14 at 13:53
  • @Sverre: I already use that package...Is it possible that it conflicts with another package? I will add my preamble to the question. – aldorado Aug 13 '14 at 14:00
  • @aldorado Your comment is a nice illustration of why we usually ask for MWEs :) – Sverre Aug 13 '14 at 14:04
  • Thank you all for your help. I systematically screened my bib file and found that it was a strange whitespace character causing the trouble - not visible in the normal editor. I found it after only one source was left and subsequent grep-ing for non-ascii characters....i will change to mendeley i guess. – aldorado Aug 13 '14 at 15:30
2

This question seems to be about the same error message and one of the answers also includes biber, so its probably related.

quoted solution by egreg: add in your preamble

\DeclareUnicodeCharacter{00A0}{ }

but of course, your case my differ. This was for the "no-break space" character. I suppose opening the .bib file in an editor that can switch between UTF8 and ANSI will help to find the problematic character.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.