hkrasser wrote:In former Versions of HMG the function 'FILE()' worked even if the filenames included blanks or umlauts.
Hi Krasser, in first:
FILE() is Harbour not HMG !
And for me works PERFECTLY !!
I took your same code above and I compiled in CONSOLE mode (pure Harbour) and also I made in GUI and there is not problem at ALL !!!
See files attached yourself can recompile in HMG version 3.2 and see. (I also attached my exe file).
Probably my firend you are not editing in UTF-8. When I took your german phrase into the prg gave me same error than you, but I saw my editor (Notepad++) was not in UTF-8. As you should know, UNICODE is perfectly works very well with languages, but you need to write in UNICODE mode, otherwise NEVER is gonna work.
When you pass to UTF-8 mode (
Encoding menu item), you will se your source code with all german accents, will be changed for strange chararcters. The please, re-type your text and save it.
Also when you use function to check if exist, copy, all these kinf of OS proposes like as: IF FILE, COPY FILE, HB_DirExists, DirMake... always IS good to put full path name too. This makes easier and safe.