Ascii and Native encoding conversion

The properties configuration files in Java can use this format

When doing Java development, there are often some garbled characters or files that cannot be correctly identified or read. For example, the message resource (properties) files commonly used for validator verification need to be re-encoded with Unicode. The reason is that the default encoding method of java is Unicode, while the encoding of the computer system is often GBK and other encodings. Therefore, the text encoding needs to be converted to the encoding that java can correctly recognize.