2

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?

  • Strange, the bbl file shows \BibEmph{Новиков~�., Манойлов~�., Сягаев~�.} – Sigur Jul 14 '15 at 8:41
  • @Sigur There are only simple blanks. – Orient Jul 14 '15 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. – Ulrike Fischer Jul 14 '15 at 8:42
  • @UlrikeFischer I just starting to use TeX, thank you for the hint. – Orient Jul 14 '15 at 8:43
  • @UlrikeFischer How to change example to use biblatex? – Orient Jul 14 '15 at 8:44
3

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

  • Nice, but "References" section name is in English. How to deal with it? – Orient Jul 14 '15 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 Jul 14 '15 at 12:25
  • I hadn't paid attention to this point. It's corrected now. – Bernard Jul 14 '15 at 13:27
  • @egreg How to choose language for section name? I know I can write \printbibliography[title={Список литературы}], but it should be chosen automatically. – Orient Jul 14 '15 at 16:25
  • 1
    @Orient: See my updated code. – Bernard Jul 14 '15 at 16:34

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.