sbt shell encoding problem
Answered
When i run sbt shell
"C:\Program Files\Java\jdk-11.0.2\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=localhost:55148,suspend=n,server=y -Xdebug -server -Xmx1536M -DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1081 -Didea.managed=true -Dfile.encoding=UTF-8 -jar C:\Users\cn\.IntelliJIdea2018.3\config\plugins\Scala\launcher\sbt-launch.jar --addPluginSbtFile=C:\Users\cn\AppData\Local\Temp\idea.sbt idea-shell
There has an option `-Dfile.encoding=UTF-8` by default which makes the console can not display CJK characters correctly. When i remove this option manually and rerun command above in terminal ,everything works fine.
Is there anyway to disable this default option?
Please sign in to leave a comment.
You can change the project/IDE encoding in the settings per http://blogs.jetbrains.com/idea/2013/03/use-the-utf-8-luke-file-encodings-in-intellij-idea/.
Thanks for your reply. But i am afraid that was not work.
I have try these solutions before post:
All of these operations seem not to influence the `-Dfile.encoding=UTF-8` which used by sbt-shell launching.(Even if i restart the IDE) .
I think there should be some ways to modify sbt-shell VM options, but as so far, I only found Settings>Build, Exec...>Build Tools >sbt>VM options which can only append new options but can not remove or modify default options.
It appears that this option is hardcoded per https://youtrack.jetbrains.com/issue/SCL-13155.
Please submit a request at https://youtrack.jetbrains.com/issues/SCL to make it configurable.
Thanks for your investigation.
I have raised a new issue at https://youtrack.jetbrains.com/issue/SCL-15107
Hope this request will be accepted by the developers.