Setting the default Java character encoding

后端 未结 17 1715
终归单人心
终归单人心 2020-11-21 06:09

How do I properly set the default character encoding used by the JVM (1.5.x) programmatically?

I have read that -Dfile.encoding=whatever used to be the

17条回答
  •  灰色年华
    2020-11-21 07:05

    We set there two system properties together and it makes the system take everything into utf8

    file.encoding=UTF8
    client.encoding.override=UTF-8
    

提交回复
热议问题