title: How to print Latin characters to the C++ console properly on Windows?
body: <p>I'm having a problem writing French characters to the console in C++. The string is loaded from a file using <code>std::ifstream</code> and <code>std::getline</code> and then printed to the console using <code>std::cout</code>. Here is what the string is in the file:</p>
  
  <blockquote>
    <p>La chaîne qui correspond au code "TEST_CODE" n'a pas été trouvée à l'aide locale "fr".</p>
  </blockquote>
  
  <p>And here is how the string is being printed:</p>
  
  <blockquote>
    <p>La cha¯ne qui correspond au code "TEST_CODE" n'a pas ÚtÚ trouvÚe Ó l'aide locale "fr".</p>
  </blockquote>
  
  <p>How can I fix this problem?</p>