You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2017/03/28 15:04:41 UTC

[jira] [Commented] (CODEC-145) Base64.encodeBase64String could better use newStringUsAscii

    [ https://issues.apache.org/jira/browse/CODEC-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15945332#comment-15945332 ] 

Sebb commented on CODEC-145:
----------------------------

Ditto for encodeBase64URLSafeString



> Base64.encodeBase64String could better use newStringUsAscii
> -----------------------------------------------------------
>
>                 Key: CODEC-145
>                 URL: https://issues.apache.org/jira/browse/CODEC-145
>             Project: Commons Codec
>          Issue Type: Bug
>            Reporter: Jesse Glick
>            Priority: Minor
>              Labels: base64
>
> {{org.apache.commons.codec.binary.Base64.encodeBase64String}} currently uses {{StringUtils.newStringUtf8}}. But the text should be in fact be in ASCII, so {{newStringUsAscii}} would be clearer and perhaps faster.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)