Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4330204

RFE: java.lang.String method to provide Auto-detect of text encoding

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • None
    • 1.2.2
    • core-libs

    Description

      Name: stC104175 Date: 04/13/2000


      java version "1.2.1"
      Classic VM (build JDK-1.2.1-A, native threads)

      The String class provides constructors and methods to convert to and from a lot
      of text encoding systems. But there is no method (I searched in String,
      java.text and java.util) to detect automatically the right encoding or a list
      of possible encoding (ala EMACS).
      It would be nice to have a method, say "String[] autoDetectEncoding(byte[])".
      The parameter is the encoded string whose encoding is not known. The array of
      Strings that is returned would be a list of possible encoding.
      This feature would be usefull for text processor with multilingual feature
      (Review ID: 102078)
      ======================================================================

      Attachments

        Activity

          People

            sherman Xueming Shen
            stompkinsunw Sean Tompkins (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: