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

logging: XMLFormatter does not write encoding for default encoding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta3
    • x86
    • windows_nt
    • Verified


      As part of the output header, the XMLFormatter writes the current
      character set encoding that is being used.

      However, if the current encoding is null, which means that we are
      using the default platform encoding then it does not write the encoding.

      This is likely to cause character set problems when an XML log
      is written in a locale with a non-trivial default encoding.

      The problem is particularly serious because the default for
      FileHandler and SocketHandler is to use XMLFormatter with the
      default platform encoding.


      ###@###.### 2001-08-12

            ghamiltosunw Graham Hamilton (Inactive)
            ghamiltosunw Graham Hamilton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: