Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-121

QuotedPrintableCodec does not support soft line break per the 'quoted-printable' example on Wikipedia

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5, 1.6
    • 1.10
    • I tested on Windows 7.

    Description

      Writing a unit test I discovered that the example Wikipedia uses for quoted-printable data does not decode but instead throws an exception.
      Their example is here: http://en.wikipedia.org/wiki/Quoted-printable#Example

      test:

      String qpdata = "If you believe that truth=3Dbeauty, then surely=20=\r\n" +
      "mathematics is the most beautiful branch of philosophy.";

      String expected = "If you believe that truth=beauty, then surely " +
      "mathematics is the most beautiful branch of philosophy.";

      assertEquals( expected, new QuotedPrintableCodec().decode(qpdata) );

      I suppose I could fix if you like but currently I'm not a registered developer.

      Attachments

        1. CODEC-121_v2.patch
          21 kB
          Thomas Neidhart
        2. CODEC-121_postponed.patch
          17 kB
          Thomas Neidhart

        Activity

          People

            Unassigned Unassigned
            javajohn Java John
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: