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?

1
4 comments
Avatar
Permanently deleted user

Thanks for your reply. But i am afraid that was not work.

I have try these solutions before post:

  1.  go to Settings>Editor>File Encoding and modify Global Encoding /Project Encoding/Default encoding for * .properties all to  non UTF8 value
  2. go to Help>Edit Custom VM Options and add `-Dfile.encoding=GBK` `-Dconsold.encoding=GBK`

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.

0

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.

0
Avatar
Permanently deleted user

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.

0

Please sign in to leave a comment.