I have encountered a problem with a fileupload using node.js and formidable.
The File is being uploaded correctly, but when it's name is changed back to its original one, using this command:
fs.renameSync("./" + files['upload-file'].path, "./u/" + files['upload-file'].name);
The Problem which arises is the following: if the Filename contains some characters like ä ö ü, they are not written to the filesytem in that way. I guess the problem is the encoding of the new Filename, but I have no idea how I can change it.
As Suggested, here is some additional info: The name of the file is this one: 07 Zerstören.mp3 The name of the file on the filesytem is this one: 07 Zerst�ren.mp3