Problem with readdir

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?

can you show us your code?
Topic archived. No new replies allowed.