title: How to Pass Unicode Arguments to G++?
body: <p>I am trying to use G++ to compile a simple C++ program. I am running Windows 10 and I have installed MinGW. So I tried to compile this file <code>C:\Users\Vesk\Desktop\Информатика\Hello World.cpp</code> with G++ by typing <code>g++ &quot;C:\Users\Vesk\Desktop\Информатика\Hello World.cpp&quot; -o &quot;C:\Users\Vesk\Desktop\Информатика\Hello World.exe&quot;</code> in the Command Prompt. G++ though didn't compile the file and gave me this error message:</p>
  <pre><code>g++: error: C:\Users\Vesk\Desktop\???????????\Hello World.cpp: Invalid argument
  g++: fatal error: no input files
  compilation terminated.
  </code></pre>
  <p>'Информатика' is just a word written in Cyrillic, so I was confused what the problem was. But then I just renamed the 'Информатика' folder to 'Informatics'. I tried to compile the file again with <code>g++ &quot;C:\Users\Vesk\Desktop\Informatics\Hello World.cpp&quot; -o &quot;C:\Users\Vesk\Desktop\Informatics\Hello World.exe&quot;</code>. And lo and behold it worked. G++ compiled the file and the executable was there in the folder and working. But is there any way to actually compile a file if its path contains Cyrillic (or other Unicode) characters? If so, how?</p>