[ 
https://issues.apache.org/jira/browse/COMPRESS-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12693424#action_12693424
 ] 

Sebb commented on COMPRESS-63:
------------------------------

The method java.lang.String.String(byte[] bytes) also uses the default 
characterset, so may cause different results on different platforms.

> String#getBytes() is platform dependent
> ---------------------------------------
>
>                 Key: COMPRESS-63
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-63
>             Project: Commons Compress
>          Issue Type: Bug
>            Reporter: Sebb
>
> Many methods use the getBytes() method on Strings, however getBytes() uses 
> the platform default encoding, which may not be suitable.
> It's also a bit inefficient to keep encoding the same strings.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to