search

Home  >  Q&A  >  body text

jvm - Java虚拟机的默认编码是什么?

如何查看Java虚拟机的默认编码?
如何修改Java虚拟机的默认编码?

怪我咯怪我咯2821 days ago794

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-17 11:44:21

    The internal encoding of Java virtual machine strings is UTF-16. The default character encoding depends on your system. Can be found via java.nio.charset.Charset.defaultCharset().

    It is best not to rely on default values ​​in your program. When you need to construct input and output, you should specify the encoding.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:44:21

    The bottom layer uses unicode and cannot be changed.

    reply
    0
  • Cancelreply