1
I have some files with Russian (cyrillic) names.
When I open them in Windows Explorer, the names display correctly.
When I list them in Command shell (cmd) they display as "?????" character.
Is there a way to tell what encoding is used in the file names?
One of the code pages? (I tried common cyrillic code pages 866 and 1251 using chcp
command with no luck). Unicode (I tried 65001 no luck)? Something else?
I don't particularly care about answer's method (all of the following is acceptable: Freeware program, Perl script, Powershell script, web page that makes me upload the file).
System: Windows XP SP3.
Side note: After digging further, I realized that my problem stemmed from not only the code page, but the fact that I wasn't using Lucida Console font (but raster font). When I changed the font to Lucida Console, and chcp to Unicode (65001) the filenames displayed correctly. So it was indeed Unicode... but my original question still stands - how do I tell the encoding without accidentally guessing the correct code page. – DVK – 2014-07-19T20:54:28.887