How can I get the numerical codepage identifier associated with a Charset object in java (i.e. 1252) ?. I can call the displayName () method, but it returns alphanumeric identifiers (for example, "windows-1252", "cp-1252", "CP1252", ...), and not just int code.
In .NET, there is an integer CodePage property in the Encoding class, but I cannot find an equivalent method in Java.
Thank.
source
share