I'm having some issues with listings
that include German
Umlaute. The following example code generates a completely messed up PDF.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[]{listings}
\begin{document}
\begin{lstlisting}[language={[LaTeX]TeX},inputencoding={utf8},extendedchars=false]
Staatsangehörigkeit
\end{lstlisting}
\end{document}
Does anyone have an idea how to fix this?