On Windows 7, dir or tree can't show unicode characters, even starting cmd with cmd /U
Solution 1:
Change the font for the console window to a TrueType font, such as Lucida Console or Consolas. With raster fonts you are restricted to the OEm character set.
cmd /u
only changes output piped into files, not what you see on screen.
PowerShell by default uses a TrueType font which is why it worked for you.
This has nothing to do with cmd
.
Solution 2:
https://stackoverflow.com/questions/10764920/utf-16-on-cmd-exe
- Open/run
cmd.exe
- Click on the icon at the top-left corner
- Select properties
- Then
Font
bar - Select
Lucida Console
and OK. - Write
Chcp 10000
at the prompt - Finally
dir /b
Also from https://stackoverflow.com/questions/379240/is-there-a-windows-command-shell-that-will-display-unicode-characters/24135341#24135341
- CHCP 65001
- DIR > UTF8.TXT
- TYPE UTF8.TXT