Saturday 6 May 2017

Node.js Filename invalid encoding characters

When writing a new file and the filename contain unicode characters with this code:

fs.writeFile('êèñéß™.txt', 'hello')

the filename in the filesystem returns something along the lines like this:

����ï¿.txt

Is there a way to specify the filename encoding?



via makkesk8

No comments:

Post a Comment