I have an nfs share mounted on both Windows and Linux both, I created a folder named "PRàjààjààjà" from Windows file explorer. When I do "ls /SomeFolder/MountedDir" in linux I see that folder in below named format
"'PR'$'\340''j'$'\340\340''j'$'\340\340''j'$'\340'"
Now In Linux side I am using FTW callback function where I print the full path of folder and it doesn't print correctly.
https://pubs.opengroup.org/onlinepubs/009696699/functions/ftw.html
int ftw(const char *path, int (*fn)(const char *,
const struct stat *ptr, int flag), int ndirs);
I assume that the callback function gives me in utf8. I have limited understanding here. Please help!
Expecting some answer to have same behaviour on Linux as well as Windows