List Files and Dirs of Path with Unicode character support ?

Post your FreeBASIC source, examples, tips and tricks here. Please don’t post code without including an explanation.
dodicat
Posts: 7976
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: List Files and Dirs of Path with Unicode character support ?

Post by dodicat »

I can only test here empirically.
I created a couple of folder names and filenames in Greek text.
I can read those names using the shell methods (and pipe methods) for dir, both in notepad and the console.
I need shell"chcp 65001" to write dir properly to a file, and to write to the console I don't necessarily need it.
Vinion
Posts: 19
Joined: Sep 08, 2022 6:27

Re: List Files and Dirs of Path with Unicode character support ?

Post by Vinion »

To be precise I didn't test the "write to file method". I tried to read the pipe data and just print them on screen.
I do not want to use a "write to file" method in order to list the files. I want to make it thread safe without using a temp file on the harddrive.
dodicat wrote: Sep 18, 2022 15:00 I can only test here empirically.
I created a couple of folder names and filenames in Greek text.
I can read those names using the shell methods (and pipe methods) for dir, both in notepad and the console.
I need shell"chcp 65001" to write dir properly to a file, and to write to the console I don't necessarily need it.
Post Reply