Overriding Standard Coding in Java

We encounter problems caused by the error described here: http://bugs.sun.com/view_bug.do?bug_id=6183404

I have already applied the fix, using a special encoding to fix incorrect mappings. However, this does not fix the problem for the single Java application that we use, as it is hardcoded to use the standard "GBK" encoding.

Can I use java.nio.charset.spi.CharsetProviderto override existing standard encodings?

+5
source share
1 answer

Charset, , Provider, .

if ((cs = standardProvider.charsetForName(charsetName)) != null ||
    (cs = lookupExtendedCharset(charsetName))           != null ||
    (cs = lookupViaProviders(charsetName))              != null)

, - , .

+3

All Articles