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

Character set used by Base64 not documented

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1, 1.2, 1.3, 1.4
    • 1.4
    • None

    Description

      The Javadoc for the Base64 class does not document which character set is returned by encode() and expected by decode(). The RFC specifies "characters", not "bytes" as the result of the encoding, and yet Base64 returns bytes. It should provide complete information as to how to convert these bytes to and from Strings. I assume the character set used is ASCII, but that should be made explicit in the Javadoc.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            pepijn schmitz Pepijn Schmitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment