On 11 Jun 2014, at 10:28 , Sven Van Caekenberghe wrote:
> Bonsoir François,
>
> From the class comment of ZnBase64Encoder:
>
> [...]
> Note that to encode a String as Base64, you first have to encode the
> characters as bytes using a character encoder.
> [...]
>
> Sending #asByteArray to a S
Oh stupid me!
Thanks a lot Sven, crystal clear explanations (and class comments!), as
always :)
On Wed, Jun 11, 2014 at 10:28 PM, Sven Van Caekenberghe
wrote:
> Bonsoir François,
>
> From the class comment of ZnBase64Encoder:
>
> [...]
> Note that to encode a String as Base64, you first have t
Bonsoir François,
From the class comment of ZnBase64Encoder:
[...]
Note that to encode a String as Base64, you first have to encode the characters
as bytes using a character encoder.
[...]
Sending #asByteArray to a String is the same as doing no encoding (or doing
null encoding).
Consider:
Z
I might hit some problem with Base64 encoding in there.
It seems that Pharo does not use UTF8 for its Base64 encoding.
I'm probably missing something related to Base64 encoding...
In Pharo 3.0:
ZnBase64Encoder new encode: 'tamèreenslipdeguerre' asByteArray.
-> 'dGFt6HJlZW5zbGlwZGVndWVycmU='
'ta