CMD: How to use non-English characters?
I want to work with non-English File names in CMD (Command Line) like creating Folder with the names or deleting several files that names are non-English. How can i work with this names ?
Solution 1:
This question was asked at stackoverflow here and here.
Summary
-
Change your code page to UTF-8 with
chcp 65001
in your batch file or CMD session. -
Start CMD with
CMD /u
to cause CMD to redirect to files in UTF-16, Little Endian.
Windows distinguishes between showed up text and redirected text to a file. -
For viewing Unicode characters in a CMD Window you need to use Lucida Console or Consolas as font instead of Raster Font. Or else some unicode characters are showed up garbled.