LaTeX forum ⇒ 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)
vgi
Posts: 11
Joined: Fri Nov 08, 2013 11:46 am

Problems with stressed cyrillic letters in UTF

Postby vgi » Sun Aug 25, 2024 2:06 pm

HI!

I want to make stressed cyrillic letters in TeX Live 2023. Compiling of the following file
\documentclass[russian,english]{article}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\begin{document}
\selectlanguage{russian}
Stressed cyrillic letters: \'в\'ф\'ы
\end{document}

leads to the error
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

Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 2 guests