The following MCE points out that some characters (for instance €, → or ←) have strange behavior (shifted on the left) in listings with lualatex (up to date TeX Live 2020). Do you know why?
\documentclass{article}
\usepackage{fontspec}
\usepackage{listings}
\begin{document}
\begin{enumerate}
\item §Foo§
\item «Foo«
\item €Foo€
\item →Foo→
\item ←Foo←
\end{enumerate}
\begin{lstlisting}
1. §Foo§
2. «Foo«
3. €Foo€
4. →Foo→
5. ←Foo←
\end{lstlisting}
\end{document}

listingsdoesn't support UTF-8. You can try saving your listing in an external file and load it usinglistingsutf8package. – Henri Menke May 26 '20 at 09:08listingsdoesn't support UTF-8 withpdftexengine; here I consider theluatexengine. And my MCE shows thatlistings, when used withluatexengine, supports at least some Unicode characters. – Denis Bitouzé May 26 '20 at 09:22listingsmaintainer to add (a limited part of) chars with Unicode positions above 256 to the processing list oflistings? – Denis Bitouzé May 26 '20 at 09:32listings' maintainer drawn. – Denis Bitouzé May 26 '20 at 15:59