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

I18N - different behavior when reading invalid char in different locale

    XMLWordPrintable

    Details

      Description

      Create a text file containing some invalid chinese characters.

      And then open and read it with FileReader class in zh_CN, zh_CN.GBK, zh_CN,UTF-8 and zh_CN.GB18030 locale.

      in zh_CN,zh_CN.GBK, zh_CN.UTF-8 locale, the read method will not throw exception and the invalid chinese character is replaced with white space.

      in zh_CN.GB18030 locale, the read() method will throw out MalformedException when reading the invalid ml character.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ilittlesunw Ian Little (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: