# Biblatex encoding

I've got a large document which I wrote some time ago. It contains a bibliography for which I use biblatex:

\usepackage[style=authoryear-comp, maxnames=1, doi=false, url=false, backend=bibtex8]{biblatex}

For the encoding within the LaTeX-document, I use:

\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}

Last time I was working with the document (around a month ago), the encoding of bibliography items was not a problem and special characters were displayed in a correct way, e.g. the author name "Brydøy". However, now, it's only displayed as "BrydÃ¸y". If I simply put "Brydøy" into the normal text, it is displayed properly, but within the citations (in text citation as well as the bibliography) there seems to be something wrong with the encoding. I would appreciate help on how to fix this issue very much.

-
Try using backend=biber instead of bibtex8. Do you know what encoding your bib file is in? –  Alan Munn Apr 22 '12 at 14:57
@AlanMunn That's what I've been trying just before I saw your comment. :-) However, backend=biber doesn't help either. I export the references into the bib-file from EndNote, so I guess it should be in Unicode. –  AnjaM Apr 22 '12 at 17:27
You can specify the bibencoding explicitly as a biblatex option. See section 2.4.3.4 of the biblatex manual. Also, if you make a small UTF-8 encoded document, does the .bib file work correctly (with backend=biber and \usepackage[utf8]{inputenc})? –  Alan Munn Apr 22 '12 at 17:33
@AlanMunn Setting bibencoding=utf8 solved the problem (I didn't change \usepackage[ansinew]inputenc, though). Thanks a lot! If you'd put your comment as an answer, I will set it as accepted. –  AnjaM Apr 22 '12 at 17:45

File encodings are not always easily determined, and so biblatex sometimes needs some help in deciding on the encoding of the bib file, especially if your bib file is encoded differently from your input file. But you can specify the bib file encoding directly as a biblatex option. If your bib file is UTF-8 encoded, you will need to use biber as the backend.

So you should load biblatex this way:

\usepackage[backend=biber, bibencoding=utf8, ... ]{biblatex}

(where ... is any other biblatex options.)

See section 2.4.3.4 of the biblatex manual for more details on bib file encoding issues.

-