[Glass] UTF8 character encoding translation between Pharo and Gemstone
Paul DeBruicker
pdebruic at gmail.com
Fri Oct 4 06:08:16 PDT 2013
Yeah this 'bug' was a case of me not understanding what I should've been doing.
For my purposes the correct implementation of DoubleByteString>>#decodeFromUTF8 is
decodeFromUTF8
^self
After that change things worked fine. Thanks for the reminder to circle back to the list with the answer
Paul
On Oct 4, 2013, at 4:15 AM, Philippe Marschall <philippe.marschall at gmail.com> wrote:
> On Wed, Oct 2, 2013 at 12:02 AM, Dale K. Henrichs
> <dale.henrichs at gemtalksystems.com> wrote:
>> I am curious how the Unicode strings are being encoded on the Pharo side? You are transferring the strings from Pharo to GemStone correct?
>>
>> I'm not sure what Pharo does with the WideStrings when creating the STON output, but it sounds wrong to be getting DoubleByeStrings from Pharo ...
>
> Without knowing the details of the STON implementation I would say the
> same. I would expect utf-8 decoding on a byte array or single byte
> string, not a double byte string.
>
> Cheers
> Philippe
More information about the Glass
mailing list