bluelovers / idea-run-typescript

IntelliJ IDEA (and WebStorm...) plugin to support 'TypeScript' as a run configuration
https://plugins.jetbrains.com/plugin/10841-run-configuration-for-typescript
76 stars 14 forks source link

中文乱码。 #4

Closed whtiehack closed 5 years ago

whtiehack commented 5 years ago

感谢这个插件。的确有用。 但是有个乱码问题

image

如果用这个命令行手动运行是没有问题的 image

感谢。

bluelovers commented 5 years ago

hmm 我在繁體 windows 內是可以正常輸出 中文的

你試試看將 ts 檔存成 utf8

whtiehack commented 5 years ago

本来就是UTF8哦。 webstorm创建的文件默认都是utf8

哈哈。

hmm 鎴戝湪绻侀珨 windows 鍏ф槸鍙互姝e父杓稿嚭 涓枃鐨�

浣犺│瑭︾湅灏� ts 妾斿瓨鎴� utf8

image

bluelovers commented 5 years ago

hmm 這我就不知道問題點在哪裡了 猜不出來

image

whtiehack commented 5 years ago

image

image

js是没有问题的。。有点纠结呀。

bluelovers commented 5 years ago

@whtiehack 在 vmoption 裡面加上這一段

-Dfile.encoding=UTF-8
whtiehack commented 5 years ago

@bluelovers 试了一下。没问题了。 感谢感谢。

EsanL commented 2 years ago

@whtiehack在 vmoption 里面加上了这一段

-Dfile.encoding=UTF-8

请问vmoption 在哪里呢?安装目录里面的webstorm64.exe.vmoptions文件吗?

EsanL commented 2 years ago

@whtiehack 在 vmoption 裡面加上這一段

-Dfile.encoding=UTF-8

搞定了,多谢!

bluelovers commented 2 years ago

image

image