Juanillo
Juanillo

Reputation: 875

Encoding problems when writing to the console in node.js

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

Upvotes: 0

Views: 1022

Answers (1)

twblalock
twblalock

Reputation: 61

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.

Upvotes: 3

Related Questions