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

RFE: LTP: java.beans.XMLEncoder should have an option to specify other charset than UTF-8

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b07
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_8, windows_nt
    • Verification:
      Verified

      Backports

        Description

        Name: nt126004 Date: 01/17/2002


        FULL PRODUCT VERSION :
        java version "1.4.0-beta3"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
        Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)


        A DESCRIPTION OF THE PROBLEM :
        XMLEncoder defaults to UTF-8 encoding
        this is a problem when :
          - the "national" context uses accented character
          - we use the xml files for setting up tests
            and these files are modified/augmented
            in a human-readable way (using a text processor)
        (and are later read using XMLDecoder)

         authorizing charset ISO-8859-1 will be a good
        start ....
        later when XML tools evolves may be we could go after other
         charsets ....

        This bug can be reproduced always.
        (Review ID: 138149)
        ======================================================================

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                malenkov Sergey Malenkov (Inactive)
                Reporter:
                nthompsosunw Nathanael Thompson (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: