|
Open folders with special characters (ñ, ...) |
alex glez
Member #16,757
October 2017
|
Some time ago I asked in this forum if it was possible to open folders with non-ascii characters (0-127) but they told me it was not possible. I use visual studio, windows 11 and allegro 5.2 I made the query on 06/12/2018 Thank you |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Look for win32 functions that allow you to load unicode filenames. That's my best advice. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Chris Katko
Member #1,881
January 2002
|
Allegro is a skeleton crew right now so that's a very low priority for a normally games focused library. What do you mean by "open a folder", you need the list of files? Or do you mean popping up a windows dialog box? This looks applicable: https://stackoverflow.com/questions/12034943/win32-select-directory-dialog-from-c-c There should be plenty of non-Allegro related questions/answers on this topic on StackOverflow since it's a more general problem. -----sig: |
SiegeLord
Member #7,827
October 2006
|
When's the last time you tried this? Since about 2019-2020, Allegro got pretty-complete unicode support on Windows. I just tried it with the native file chooser, and it seemed to work. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
alex glez
Member #16,757
October 2017
|
Hello everyone and thanks for the responses. My program makes the user open a folder with photos and then adds a layer to it, that is, a photomontage, but the user can have the folder with a non-ascii name and there is the problem. All the best |
|