I'm getting unicode errors when using currency symbols in a listing environment.
I tried to add \usepackage{textcomp}
but then I'm getting other (bibtex) errors. So maybe there is a cleaner option?
\documentclass[a4paper,12pt,parskip=half]{report}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[language=Python, caption=Example, label=lst:example]
currencies = ["£","€","$","¥","¢","₩","§"]
\end{lstlisting}
\end{document}
Best Answer
You can use LateX commands to typeset them in listings mode, so you have to escape them. For that, use \lstset. The commands to type them are located in textcomp package.
Something like this: