Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 12321 invoked from network); 17 Jul 2009 22:31:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jul 2009 22:31:34 -0000 Received: (qmail 40828 invoked by uid 500); 17 Jul 2009 22:32:39 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 40746 invoked by uid 500); 17 Jul 2009 22:32:39 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 40736 invoked by uid 99); 17 Jul 2009 22:32:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 22:32:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 22:32:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D153C234C044 for ; Fri, 17 Jul 2009 15:32:14 -0700 (PDT) Message-ID: <2136778881.1247869934843.JavaMail.jira@brutus> Date: Fri, 17 Jul 2009 15:32:14 -0700 (PDT) From: "Julius Davies (JIRA)" To: issues@commons.apache.org Subject: [jira] Issue Comment Edited: (CODEC-58) Character set used by Base64 not documented In-Reply-To: <8377230.1195216183977.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CODEC-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732761#action_12732761 ] Julius Davies edited comment on CODEC-58 at 7/17/09 3:30 PM: ------------------------------------------------------------- Patch uploaded (codec58.patch): Character encoding now mentioned in javadoc. I also added some info about CODEC-75 (URL-Safe) to the Javadoc. was (Author: juliusdavies): Character encoding now mentioned in javadoc. I also added some info about CODEC-75 (URL-Safe) to the Javadoc. > Character set used by Base64 not documented > ------------------------------------------- > > Key: CODEC-58 > URL: https://issues.apache.org/jira/browse/CODEC-58 > Project: Commons Codec > Issue Type: Bug > Affects Versions: 1.1, 1.2, 1.3, 1.4 > Reporter: Pepijn Schmitz > Priority: Minor > Fix For: 1.x > > Attachments: codec58.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.