Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-314

Deprecate all methods that use the default encoding

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.5
    • Component/s: Streams/Writers
    • Labels:
      None

      Description

      On Stackoverflow.com, I often see this kind of question: "When I read my text on a different computer, it's all garbled."

      The underlying issue is that people don't understand the concept of encoding and therefore, they use the default encoding which breaks their code when they least expect it. Worse, it often causes data corruption without throwing exceptions.

      Therefore my suggestion: Deprecate and then remove all methods that use the default encoding. Users should always specify an encoding when doing text I/O, to make sure that data cannot be corrupted even when they don't know what they're doing.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              digulla Aaron Digulla
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: