title: Latex displaying C++: error with accentuated characters
body: <p>I have a Latex document displaying C++ code. The document is saved in UTF-8.</p>
  
  <p>Here is the Latex code:</p>
  
  <pre><code>\documentclass[a4paper,11pt]{article}
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage{lmodern,textcomp}
  \usepackage[frenchb]{babel}
  \usepackage{listings}
  \lstset{
  language=C++,
  extendedchars=true,
  inputencoding=utf8
  }
  \begin{document}
  Voici du code :
  \begin{lstlisting}
  #include &lt;iostream&gt;
  
  int main() {
     // Affichage des libellés des colonnes
     std::cout &lt;&lt; "a b c\n";
  }
  \end{lstlisting}
  \end{document}
  </code></pre>
  
  <p>Note the accentuated character in the C++ code sample.</p>
  
  <p>When trying to generate the PDF document, I get the following error:</p>
  
  <pre><code>! Missing \endcsname inserted.
  &lt;to be read again&gt;
                     \global
  l.18     // Affichage des libellés
                                      des colonnes
  ?
  </code></pre>
  
  <p>If I remove the accentuated character, the PDF generation works fine.</p>
  
  <p>What's wrong?</p>