I have the following code
\documentclass{report}
\usepackage{fontspec}
\begin{document}
Ārā
\begin{equation}
\Phi_{Ārā}
\end{equation}
\end{document}
I use xelatex to compile this code containing Latvian characters - see Which inputenc for these Latvian letters?
The output is the following
The letters with diacritic marks are displayed correctly in text but are missing in the formula. How to fix?

\tracinglostchars=2at least. – ShreevatsaR Jun 20 '17 at 15:05