Change java encoding in windows

When you get an encoding error when compiling UTF8 source You can pass -Dfile.encoding = UTF8 to the javac command each time, but if you can set it in an environment variable and fix it

JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

It is also supported by setting a value in JAVA_TOOL_OPTIONS.

Reference site

Recommended Posts

Change java encoding in windows
Encoding and Decoding example in Java
Encoding when getting in Windows + Ruby
Partization in Java
Changes in Java 11
Rock-paper-scissors in Java
Change List <Optional <T >> to Optional <List <T >> in Java
Pi in Java
FizzBuzz in Java
Dynamically change private static final fields in Java
A bat file that uses Java in windows
Change paragraph text color in Java Word documents
[java] sort in list
Read JSON in Java
Interpreter implementation in Java
Make Blackjack in Java
Rock-paper-scissors app in Java
Constraint programming in Java
Put java8 in centos7
Combine arrays in Java
"Hello World" in Java
Callable Interface in Java
Comments in Java source
Azure functions in java
Format XML in Java
Simple htmlspecialchars in Java
Boyer-Moore implementation in Java
Hello World in Java
Use OpenCV in Java
webApi memorandum in java
Type determination in Java
Ping commands in Java
Various threads in java
Heapsort implementation (in java)
Zabbix API in Java
ASCII art in Java
Compare Lists in Java
POST JSON in Java
Express failure in Java
Create JSON in Java
Date manipulation in Java 8
What's new in Java 8
Use PreparedStatement in Java
What's new in Java 9,10,11
Parallel execution in Java
Initializing HashMap in Java
Change Java heap size in Tomcat in Azure App Service
Change the storage quality of JPEG images in Java
Try using RocksDB in Java
Read binary files in Java 1
Avoid Yubaba's error in Java
Get EXIF information in Java
Save Java PDF in Excel
[Neta] Sleep Sort in Java
Edit ini in Java: ini4j
Java history in this world
Let Java segfault in 6 lines
Try calling JavaScript in Java
Try developing Spresense in Java (1)
Try functional type in Java! ①
Resolve CreateProcess error = 206 when running Java in a Windows environment