# minted and Unicode: symbols missing

Code:

\documentclass{article}
\usepackage{minted}

\begin{document}
\begin{minted}[mathescape,
linenos,
numbersep=5pt,
gobble=2,
frame=lines,
framesep=2mm]{csharp}
string title = "This is a Unicode π in the sky"
/*
Defined as $\pi=\lim_{n\to\infty}\frac{P_n}{d}$ where $P$ is the perimeter
of an $n$-sided regular polygon circumscribing a
circle of diameter $d$.
*/
const double pi = 3.1415926535
\end{minted}
\end{document}


And the result:

Note the missing π in the title variable.

• You get Missing character: There is no π in font cmtt10 in the log. But if you load fontspec, you get Missing character: There is no π in font [lmmono10-regular]. – egreg Oct 11 '13 at 17:24

That's a font problem, not a LaTeX engine or Pygments.
\usepackage{fontspec}

• Or \setmonofont{CMU Typewriter Text}. Using XeLaTeX without fontspec is not recommended. – egreg Oct 11 '13 at 17:25