Issue Details (XML | Word | Printable)

Key: CODEC-58
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Pepijn Schmitz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Codec

Character set used by Base64 not documented

Created: 16/Nov/07 12:28 PM   Updated: 18/Jul/09 01:21 AM
Return to search
Component/s: None
Affects Version/s: 1.1, 1.2, 1.3, 1.4
Fix Version/s: 1.x

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works codec58.patch 2009-07-17 10:29 PM Julius Davies 3 kB

Resolution Date: 18/Jul/09 01:21 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.