I’m having problems with the encoding in node.js. I’m running it on windows and for example if I run this simple program:
console.log("trying áéíóú");
I get in the console:
trying ?????
Is this normal? How can I solve this problem?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The problem is that your console is not capable of handling certain characters the way it is currently configured. Check in the settings and see if you can enable different character sets. You probably want to use Unicode.