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

I18N - different behavior when reading invalid char in different locale

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: