btzy / nativefiledialog-extended

Cross platform (Windows, Mac, Linux) native file dialog library with C and C++ bindings, based on mlabbe/nativefiledialog.
zlib License
700 stars 96 forks source link

Not able to import file with non-ASCII characters in the path on Windows #133

Closed MeGaL0DoN closed 8 months ago

MeGaL0DoN commented 8 months ago

The description claims that "Native character set (UTF-16 wchar_t) support on Windows". However, I was not able to get it working. I tried using NFD::UniquePathU8 instead of NFD::UniquePath, but that doesn't seem to work, as there is no way to cast it to wchar_t, it can be casted only to char, like the NFD::UniquePath.

MeGaL0DoN commented 8 months ago

Sorry, I found that I am supposed to use NFD::UniquePathN instead, and it is castable to wchar_t*

MeGaL0DoN commented 8 months ago

I know that U8 stands for UTF-8, but for what does N stand in UniquePathN?

btzy commented 8 months ago

N stands for "native".