You can use decodeURI (myFile.name) to replace special characters with basic ones.
Adjust File.encoding ...
Hi Peter, Dirk,
Thanks a lot for your both answers,
decodeURI(...) is what I tried in a first place but it didn't solve my matter.
I am trying your encoding suggestion asap.
Thanks once again to both of you.
Dirk is correct, of course. As the problem occurs when writing some contents to the file, its encoding is what matters, not its name's encoding.
Yeah thanks Dirk,
The File.encode(String) was a bit disturbing for me at first but it did the trick ;-)
I think Dirk meant:
txtFile.encoding = "UTF8";
Ok, I will have a look when I have my head out of water (ie job) :-D