Problem with readdir

Jan 30, 2015 at 1:51pm
Hello.
Trying to catch all dirs and files in Ubuntu catalog, with non ascii character codes i have problem in read dir...

const char* PATH;
vector<dirent*> tmpDirs;
DIR *dir = opendir(PATH);
struct dirent *entry = readdir(dir);


For example the resault of dir in dektop ...

Directories: PATH: /home/a/•ΐΉΖ¬½µΉ± µΑ³±Γ―±Β/1 ... FileType: sd
Dirs PATH: /home/a/•ΐΉΖ¬½µΉ± µΑ³±Γ―±Β/1

But if main dir put in root foldrer all are ok.
There is a way to have not char* folders and files names?

Feb 1, 2015 at 8:07am
can you show us your code?
Topic archived. No new replies allowed.