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

Some charsets can't encode/decode some characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Run the attached test and see
      1. charset.canEncode() returns true
      2. charset.newEncoder().canEncode(string) returns true
      but
      !string.equals(new String(string.getBytes(charset), charset))

      It breaks XML encoding/decoding for JavaBeans.

            sherman Xueming Shen
            malenkov Sergey Malenkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: