Re: [Pharo-users] Base64 encoding + UTF8 ?

2014-06-12 Thread Henrik Johansen
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

Re: [Pharo-users] Base64 encoding + UTF8 ?

2014-06-11 Thread François Stephany
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

Re: [Pharo-users] Base64 encoding + UTF8 ?

2014-06-11 Thread Sven Van Caekenberghe
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

[Pharo-users] Base64 encoding + UTF8 ?

2014-06-11 Thread François Stephany
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