Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help capturng unicoded directory names
#2
First thing you have to check for is that your console is set up using an unicode font.  (Say Lucidia Console Font.)  If the font doesn't support unicode, you aren't getting much further than that.

Second is to set the console properties to UTF-8.

Now you're set to do a simple SHELL "dir > filelist.txt" and get those unicode characters.

You may be able to do this with a batch file, if your console is set with the proper font.

Code: (Select All)
CHCP 65001
DIR > MyFileName.TXT

Save the above as your batch file, and that CHCP 65001 will set you to an UTF-8 character page which the DIR will then use for your MyFileName.TXT file creation.
Reply


Messages In This Thread
RE: Need help capturng unicoded directory names - by SMcNeill - Yesterday, 02:35 PM



Users browsing this thread: 6 Guest(s)