-Dfile.encoding=UTF-8
时间: 2024-06-02 09:13:58 浏览: 162
判断文件是否为utf-8的编码格式
4星 · 用户满意度95%
This is a command line option for specifying the character encoding used by the Java compiler or runtime environment. The value "UTF-8" specifies the UTF-8 character encoding, which is a variable-length character encoding that can represent any character in the Unicode standard. This option is commonly used to ensure that Java programs can correctly handle non-ASCII characters in their input/output, especially when dealing with internationalization and localization.
阅读全文