TypeScript Version: 2.9.1
Search Terms: typescript unicode, typescript enum unicode
Code
export const TestObject = {
WELCOME: '浣犲ソ',
TEST: '褌械褋褌',
}
export enum TestEnum {
WELCOME = '浣犲ソ',
TEST = '褌械褋褌',
}
Expected behavior:
Fields in TestObject and TestEnum ought to be compiled to a consistent encoding format (utf8).
Actual behavior:
Special characters in Object were compiled to utf8 while those in Enum were compiled to unicode.
Playground Link:
Official Playground
Related Issues:
https://github.com/Microsoft/TypeScript/issues/10498
In JSX same problem

I think Typescript should have cli parameter to keep non Latin characters as is (and may be TRUE by default)
Any progress?
Most helpful comment
In JSX same problem

I think Typescript should have cli parameter to keep non Latin characters as is (and may be TRUE by default)