formulahendry / formulahendry/vscode-code-runner

java encoding issue with solution

Open
#377 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

javac use default encode mode by operation. In the result, javac can not compile .java file which is not fit with your OS. Like UTF-8 .java file can not compile in Traditional Chinese Windows OS (encode with Big5)

![default](https://user-images.githubusercontent.com/28750726/46556539-8ce54080-c919-11e8-972e-b632b4c183d7.png)

solution is like this ,

just add encode parameters in Code Runner setting like this.

"code-runner.executorMap": {
"java": "cd $dir && javac **-encoding UTF-8** $fileName && java $fileNameWithoutExt"
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.