QFileDialog error with path containing accents

  • Hi,

    I've got an error with QFileDialog, whom I'm not sure to be the responsible : my Windows session's name has the misfortune of containing one accent, and every path containing it is not accessible. Instead I have a large MessageBox error.

    To be concrete, if I try to access my desktop folder through a QFileDialog (URL: "C:/Users/Clément/Desktop"), I get an error explaining me that the URL "C:/Users/Cl,ment/Desktop" doesn't exist. You could notice that "é" has been replaced by ",". I searched if someone had the same problem, but obviously I am the only idiot who put an accent in his session's name.

    As I haven't the pretention to say that I'm totally sure this is a problem coming from the framework, I prefer ask before if anyone knows a fix to my problem.

    Thanks for your future replies.

  • Hi,

    Could you try setting a proper "locale":http://doc.qt.io/qt-5/qlocale.html#setDefault and test again?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.