Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
According to RFC 4648 [1], base32 and base64 should use the US-ASCII charset.
However, the code currently uses UTF-8.
This should not make a difference when converting from byte[] to String, because the bytes will always be US-ASCII.
However, depending on how the conversion treats characters which are UTF-8 but not ASCII, it could affect the behaviour when decoding non-ASCII strings.
Should the code use newStringUsAscii(byte[])/getBytesUsAscii(String) throughout?
Some of the Javadoc will need adjusting if so.
Attachments
Issue Links
- relates to
-
CODEC-145 Base64.encodeBase64String could better use newStringUsAscii
- Resolved