Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeScript localization issues

If I use typescript and declare a string there, and set that string to some Russian text. Then typescript compiler compiles to JavaScript with no regard to encoding I use in solution. So I get that "questions in rombic symbols" instead of normal letters.

So, do you know how to fix it?

like image 578
Pavel Evdokimov Avatar asked Sep 22 '26 11:09

Pavel Evdokimov


1 Answers

TypeScript as default creates an ANSI encoded file when added using visual studio. (or visual studio creates ansi files as standard)

To fix open the file in notepad and use "save as" and change the encoding to UTF8 or UNICODE.

like image 125
Dreamwalker Avatar answered Sep 24 '26 06:09

Dreamwalker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!