title: Windows batch: Unicode parameters for (robo) copy command
body: <p>I need to copy multiple files in a single batch file. The files have Unicode names that map to different codepages.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>set ArabicFile=ڊڌڵڲڛشس
  set CyrillicFile=щЖЛдЉи
  set GermanFile=Bücher
  
  copy %ArabicFile% SomePlaceElse
  copy %CyrillicFile% SomePlaceElse
  copy %GermanFile% SomePlaceElse
  </code></pre>
  
  <p><strong>Problem:</strong> Batch files cannot be Unicode.</p>
  
  <p><strong>Question:</strong> How can I write the Unicode file names to the batch file so that the copy command recognizes them?</p>
  
  <p><strong>Notes:</strong> </p>
  
  <p>I do not care how the file names are displayed.<br>
  Actually the batch file does much more than just copy these files, I just simplified the description to make the problem clearer.</p>
  
  <p><strong>Correct batch file:</strong></p>
  
  <p>With Arnout's answer I modified my batch file as follows. It now works correctly without requiring a font change (which would be messy, as Arnout commented).</p>
  
  <pre><code>@echo off
  
  chcp 65001
  
  set ArabicFolder=ڊڌڵڲڛشس
  set CyrillicFolder=щЖЛдЉи
  set GermanFolder=Bücher
  
  robocopy /e d:\temp\test\%ArabicFolder% d:\temp\test2\%ArabicFolder% /log:copy.log
  robocopy /e d:\temp\test\%CyrillicFolder% d:\temp\test2\%CyrillicFolder% /log+:copy.log
  robocopy /e d:\temp\test\%GermanFolder% d:\temp\test2\%GermanFolder% /log+:copy.log
  </code></pre>