[Tex/LaTex] How to set UTF8 in a lstlisting? (Error received)

characters

I need to copy and past some UTF8 code into a lstlisting, but unfortunately, I receive the following error :

! Package inputenc Error: Unicode char \u8:�\lst@FillFixed@\lst@EC� not set up
for use with LaTeX.

Keyboard character used is undefined

What is weird was that I didn't noticed any weird characters in my lstlisting code (it's some bash code). Furthermore I got the package in header:

 \usepackage[utf8]{inputenc}

What should I do?

Best Answer

I just solved it in using

  inputencoding=latin1

I hope it can help some in the same case than me.