私はこのコードを日食で書いて、いくつかのアラビア語を取得してから印刷しました
public class getString {
public static void main(String[] args) throws Exception {
PrintStream out = new PrintStream(System.out, true, "UTF-8");
Reader r = new InputStreamReader(System.in, "UTF-8");
char[] str ;
str= new char[10];
r.read(str);
out.println(str);
}
}
しかし、出力は次のとおりです。
あいにく
شیرین</p>
何か助けて??
ご清聴ありがとうございました