0

How can I make nodejs display correctly Arabic characters? I m outputting an arabic string that I read from a file using gruntjs's log utility;

grunt.log.ok('مرحبا = hello');

But instead displays it like

Nodejs command prompt

After some further verification, I narrowed the problem origin and found that this is related to command prompt itself which does not support Arabic characters by default :(

Any suggestions?

numediaweb
  • 16,362
  • 12
  • 74
  • 110
  • The windows command prompt does not support UTF-8 out of the box, so you'll need to change the codepage for the terminal in order for it to display. This should help: http://stackoverflow.com/questions/388490/unicode-characters-in-windows-command-line-how – tkone Aug 04 '14 at 12:23
  • tried `chcp 65001` and set font to Lucida console but still it didn't work. – numediaweb Aug 04 '14 at 15:40
  • You might need a different code page for arabic. or a different font. Or something? – tkone Aug 04 '14 at 17:58

0 Answers0