I use a package to right Latex code on Latex, but when I used special caracters I got this error
Package inputenc Error: Unicode char ...
this is a sample of code
\documentclass[12pt,a4paper,twoside,openright]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,francais]{babel}
\usepackage{listings}
\lstset
{
language=[LaTeX]TeX,
breaklines=true,
basicstyle=\tt\scriptsize,
keywordstyle=\color{blue},
identifierstyle=\color{black},
}
\begin{document}
\begin{lstlisting}
Ceci est un nom composé en fin de ligne du mathématicien Albert~EINSTEIN.
\end{lstlisting}
\end{document}
like you see, the phrase on the listing bloc contain special caracters, I tried utf8x instead of utf8, it doesn't work, so how can I solve this, please ?