3

Error with message Package inputenc Error: Unicode char \u8:<d0>. not set up for use with LaTeX occurs, when I compile (Ubuntu 14.04.1, texlive-full) the document:

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[russian,english]{babel}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{article:manoilov, 
  author      = {Новиков, Л.В. and Манойлов, В.В. and Сягаев, Н.А.},
  title       = {Метод разделения пиков в дуплете},
  journal     = {Известия Санкт-Перетрбургского государственного технлогического университета (технического университета)},
  year        = {2012}, 
  number      = {14}, 
  pages       = {107-108},
  language    = {russian},
  hyphenation = {russian}, 
}
\end{filecontents}
\begin{document}
\nocite{*}
\bibliographystyle{gost2008s}
\bibliography{\jobname}
\end{document}

Appending \DeclareUnicodeCharacter{00D0}{\TH} to peramble does nothing.

Changing Новиков, Л.В. and Манойлов, В.В. and Сягаев, Н.А. value to Новиков and Манойлов and Сягаев makes error to hide.

How to deal with such kind of errors?

14
  • Strange, the bbl file shows \BibEmph{Новиков~�., Манойлов~�., Сягаев~�.}
    – Sigur
    Commented Jul 14, 2015 at 8:41
  • @Sigur There are only simple blanks. Commented Jul 14, 2015 at 8:42
  • 1
    It is dangerous to use bibtex with utf8 files. It can insert line breaks in the bytes of a char. With biblatex the example works fine. Commented Jul 14, 2015 at 8:42
  • @UlrikeFischer I just starting to use TeX, thank you for the hint. Commented Jul 14, 2015 at 8:43
  • @UlrikeFischer How to change example to use biblatex? Commented Jul 14, 2015 at 8:44

1 Answer 1

4

With biblatex and biber (which understands utf8) there is no problem:

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english,russian]{babel}
\usepackage[autostyle]{csquotes}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{article:manoilov,
  author = {Новиков, Л.В. and Манойлов, В.В. and Сягаев, Н.А.},
  title = {Метод разделения пиков в дуплете},
  journal = {Известия Санкт-Перетрбургского государственного технлогического университета (технического университета)},
  year = {2012},
  number = {14},
  pages = {107-108},
  language = {russian},
  hyphenation = {russian},
}
\end{filecontents}
\usepackage[backend=biber, babel=other, style=gost-authoryear]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}

\nocite{*}

\printbibliography

\end{document} 

enter image description here

6
  • Nice, but "References" section name is in English. How to deal with it? Commented Jul 14, 2015 at 12:18
  • @Orient If the document is in Russian, you should have \usepackage[english,russian]{babel} (and omit english if you don't use that language).
    – egreg
    Commented Jul 14, 2015 at 12:25
  • I hadn't paid attention to this point. It's corrected now.
    – Bernard
    Commented Jul 14, 2015 at 13:27
  • @egreg How to choose language for section name? I know I can write \printbibliography[title={Список литературы}], but it should be chosen automatically. Commented Jul 14, 2015 at 16:25
  • 1
    @Orient: See my updated code.
    – Bernard
    Commented Jul 14, 2015 at 16:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .