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

java.io.OutputStreamWriter: Want to disable substitution mode

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.1, 1.2.0
    • core-libs
    • Fix Understood
    • generic
    • generic

      When I take, for example, a string of Japanese text and try to write
      it out into an OutputStreamWriter that is using an encoding which does
      not support those characters -- e.g. Big5 or US-ASCII -- many characters
      can't be converted.

      The bug is that the error is silent, and the write claims to succeed
      when in fact it failed -- yet the output does not contain the characters
      which I wrote !! (It substitutes a "?" silently.)

      This prevents writing general transcoding software, to do full
      character set conversion, in Java. Only character encodings such
      as "UTF-8" or "UTF-16" can be fully supported for transcoding.
      Applications which need to automatically transcode can't support
      such functionality.

            Unassigned Unassigned
            dbrownelsunw David Brownell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: