2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Javaの文字コードの今

Posted at

始めに

文字や文字列を表示する際には文字コードを指定する必要があります。

文字コードにはShift_JIS,UTF-8,Unicode(UTF-16)などの種類があり、この指定を誤ると文字化けが起きてしまいます。

今回は2023年10月のアップデート後にJavaで使用されている文字コードについて確認しました。

参考にした記事

こちらの記事からコードをお借りし、Javaの文字コードを確認しました。

Main.java
public class Main {
    public static void main(String[] args) {
         System.out.println(System.getProperty("file.encoding"));
    }
}
出力結果
UTF-8

どうやらバージョンアップ後もUTF-8が使用されているようです。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?