This is my first post on tex.stackexchange, so Hello to everyone.
I am using biblatex with biber to produce the bibliography and I have a problem with utf8 characters. As usual, I can use utf8 characters in the fields, but they do not seem to work when used in the citation key. A mwe is the following:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french,english]{babel}
\usepackage{filecontents}
\begin{filecontents*}{bibliography.bib}
@article{rené,
author = {Descartes, René},
title = {Discourse on the method},
}
\end{filecontents*}
\usepackage[backend=biber]{biblatex}
\addbibresource{bibliography.bib}
\begin{document}
This citation fails\cite{rené}.
\printbibliography
\end{document}
I have specified the utf8 encoding but when I run biber (after two compilations with pdflatex) I get the following error:
INFO - This is Biber 2.7 (beta)
INFO - Logfile is 'mwe.blg'
INFO - Reading 'mwe.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'bibliography.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'bibliography.bib'
WARN - I didn't find a database entry for 'ren\IeC {\'e}' (section 0)
INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
INFO - Sorting list 'nty/global/' of type 'entry' with scheme 'nty' and locale 'en-US'
INFO - No sort tailoring available for locale 'en-US'
INFO - Writing 'mwe.bbl' with encoding 'UTF-8'
INFO - Output to mwe.bbl
INFO - WARNINGS: 1
As you can see, the character "é" in the command \cite{rené} has been expanded (by whom?), and therefore biber cannot find the corresponding citation key.
Is there a way to fix this? My keys are automatically generated periodically so I would prefer to avoid the manual editing of every non-ASCII character.
Rene1673and evenRene1673bandRene1673bwhen the two parts are the same in two references. Indeed, the best to start consistently, except if you have already a lot of citations with custom keys (JabRef change only the BiBTeX file). – Fran Mar 20 '17 at 09:03&etc.?) – moewe Mar 20 '17 at 09:11René,Ren\'e,Ren\'{e}and for extension, any single character command as inRen\&e, but fail withRen\&é(will leftRen&e) and some really stupid like\emph{René}will leftmphRene, while a simple typo likeRe&neis lelft untouched. But sanitize these keys will not save you of a pretty LaTeX error or worse, a wrongly printed name, so the problem always is sanitize the author field. In practice, I never found a wrong generated key with JabRef. – Fran Mar 20 '17 at 10:04