MBehtemam
MBehtemam

Reputation: 7919

How to show correct local string in VS Code Terminal or any Terminal

Recently I'm working with NodeJS Intl Object , I written my codes in VS code and run the code with NodeJS version 12 but I can't see expected output. my codes are :

const number = (12000).toLocaleString("ar-EG");
console.log(number);

when I run this code it's print 12,000 but I expect it should print ١٢٬٠٠٠ , also when I run my codes in Chrome web browser everything works fine but not in Terminal or VS Code Terminal . so what configuration must be set to see the correct output ? my OS is Linux Mint

Upvotes: 0

Views: 387

Answers (1)

Yasser Mas
Yasser Mas

Reputation: 1682

Because VSC terminal not supporting Arabic numbers, to test it try to write the output in file and open it by any app support Arabic numbers

Please check this link

Upvotes: 1

Related Questions