I write a presentation in German language, so I use
\usepackage[ngerman]{babel}
Now, I want to write "UTF-8" but the output looks like that:
How can I fix it?
Thank you for your help!
MWE:
\documentclass{beamer}
\usetheme{Boadilla}
\usepackage[ngerman]{babel}
\begin{document}
\begin{frame}
\texttt{"UTF-8"}
\end{frame}
\end{document}

"{}UTF-8"if you want to keep using shorthands in the rest of your document. – samcarter_is_at_topanswers.xyz Jan 09 '19 at 15:07\verb|"UTF-8"|would work as well but might requirefragilesetting on the frame. – Martin Scharrer Jan 12 '19 at 13:31