Fonts & Character SetsProblems with stressed cyrillic letters in UTF

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
vgi
Posts: 11
Joined: Fri Nov 08, 2013 11:46 am

Problems with stressed cyrillic letters in UTF

Post by vgi »

HI!

I want to make stressed cyrillic letters in TeX Live 2023. Compiling of the following file

Code: Select all

\documentclass[russian,english]{article}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\begin{document}
\selectlanguage{russian}
Stressed cyrillic letters: \'в\'ф\'ы
\end{document}
leads to the error

Code: Select all

l.11 Stressed cyrillic: \'в\'Ñ„\'Ñ
                                   ‹
The document does not appear to be in UTF-8 encoding.
Try adding \UseRawInputEncoding as the first line of the file
or specify an encoding such as \usepackage [latin1]{inputenc}
in the document preamble.
Alternatively, save the file in UTF-8 using your editor or another tool
I'm sure that the encoding of the file is really UTF-8. If I change it to cp1251 (and change the second line to \usepackage[cp1251]{inputenc}) everything works fine.

How can I make stressed cyrillic letters in UTF?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply