title: Renaming a file with an en dash in the name in C++
body: <p>In the project I'm working on, I work with files and I check if they exists before proceeding. Renaming or even working with files featuring that 'en dash' in the file path seems impossible.</p>
  
  <pre><code>std::string _old = "D:\\Folder\\This – by ABC.txt";
  std::rename(_old.c_str(), "New.txt");
  </code></pre>
  
  <p>here the _old  variable is interpreted as D:\Folder\This û by ABC.txt 
  I tried</p>
  
  <pre><code>setlocale(LC_ALL, "");
  //and
  setlocale(LC_ALL, "C");
  //or    
  setlocale(LC_ALL, "en_US.UTF-8");
  </code></pre>
  
  <p>but none of them worked.. What should be done?</p>