How can I get the numeric codepage identifier associated with a Charset object in java (ie. 1252) ?. I can call to displayName() method but it returns alphanumeric identifiers (like "windows-1252", "cp-1252", "CP1252", ...), not only the int code.
In .NET exists an integer CodePage property in Encoding class, but I can't find an equivalent method in Java.
Thanks.
From the examples you give, you may use a regular expression: