When I try to compile the following document caption package seem to convert caption text to \cyr.. sequences and fontspec don't understand them. Is it possible do somehow get around that without getting back to 8-byte internal encodings?
\documentclass[11pt]{article}
\usepackage{fontspec}
\usepackage[english,russian]{babel}
\setmainfont{Arial} %anything will do
\begin{document}
Надпись на русском.
\begin{figure}
\caption{Это надпись} %if you comment this document compiles
\end{figure}
\end{document}
Here's the error string
! Undefined control sequence.
\figurename ->{\cyr \CYRR
\cyri \cyrs .}
l.9 \caption{Это надпись}
%if you comment this document compiles
Update: this is the same as \tableofcontents encoding issue with lualatex

\figurename. Redefine it before using:\def\figurename{Рис. }– Eddy_Em Apr 22 '13 at 10:18Problem is with \cyr sequences, changing the order of babel languages makes figure names to become english, but any cyrillic characters in captions cause the same error.
– eiennohito Apr 22 '13 at 10:18