Ced
Ced

Reputation: 142

What is the TypeScript compiler argument that allow to specify output js codepage?

By default TS RC1 output JS files in UTF-8 but we need him to output JS in ANSI. Is there a compiler argument to do this ?

Upvotes: 0

Views: 292

Answers (2)

user3392029
user3392029

Reputation:

Please note that VisualStudio has Pre-build events. I'm not sure that it will help but you can write some .bat file to transform UTF-8 chars into codes before compiling.

Upvotes: 0

setec
setec

Reputation: 16090

There is no such argument in the tsc compiler (version 0.9.5).

You would have to use other tools to convert UTF-8 to ANSI in generated JS files.

Upvotes: 2

Related Questions