What is the purpose of the system property sun.jnu.encoding
? Various fragments on the web set or report it, but I can't find a definition.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I believe that this value represents the system encoding, which may be different from the user encoding ("file.encoding") on some platforms. The "sun" prefix makes me suspect that this is an implementation detail specific to the Sun JRE (a quick look at an IBM 1.4 VM shows an "ibm.system.encoding" system property). I have no idea on how this might be used internally - though I'm sure a quick look through the source would yield some clues.
see http://happygiraffe.net/blog/2009/09/24/java-platform-encoding/
This link describes the usage of the
sun.jnu.encoding
property for using the correct encoding when parsing values passed via the commandline, something that setting thefile.encoding
property doesn't influence.I did some investigation on encoding and as per my analysis