\documentclass{article}

\usepackage[utf8]{inputenc}

\begin{document}

Example. Пример.

\end{document}
