# minted: Unicode characters in listing

MWE:

\documentclass{article}
\usepackage[a4paper]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{xcolor}
\usepackage{minted}
\begin{document}
--   ∀x. (id <$> x) ≅ x \end{minted} \end{document}  Compiles well with: xelatex --shell-escape ./haskell.tex  The symbols ∀ and ≅ are missing in the output file. ## 1 Answer You should use a font which has the glyphs: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[english]{babel} \usepackage{xcolor} \usepackage{minted} \usepackage{fontspec} \setmonofont{DejaVu Sans Mono} \begin{document} \begin{minted}[breaklines]{haskell} -- ∀x. (id <$> x) ≅ x

• I think I might have misunderstood you. The \setmonofont to one that contains the symbols is necessary for your answer to work, right? – Davislor Aug 9 '19 at 6:09
• Testing the original snippet with pdffonts, I see that you are correct. – Davislor Aug 9 '19 at 17:34