Character decoders can be used to auto-detect character encodings. An example among the current J2RE character converters is the JIS Auto-detect converter, which distinguishes between ISO 2022 JP, EUC-JP, and Shift-JIS. Clients sometimes need to find out the actual encoding, so they can encode reply text in the same encoding. To support this, CharsetDecoder needs a method to return the name of the detected encoding or the Charset itself.
- relates to
-
JDK-4445789 RFE: character encoding support improvement in JEditorPane
- Closed
-
JDK-4320428 RFE: JISAutoDetect should return detected converter name
- Closed