UnicodeString asByteArray

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

UnicodeString asByteArray

Ian Bartholomew-15
Andy/Blair,

I know Dolphin does not fully support Unicode but this error has been
knocking about for some time and it might be better to override #asByteArray
rather than just answering an incorrect value?

'ABCDEF' asUnicodeString asByteArray ==> #[65 0 66 0 67 0]

Regards
    Ian


Reply | Threaded
Open this post in threaded view
|

Re: UnicodeString asByteArray

Blair McGlashan
"Ian Bartholomew" <[hidden email]> wrote in message
news:Bs2R8.9995$VP6.747351@stones...
> Andy/Blair,
>
> I know Dolphin does not fully support Unicode but this error has been
> knocking about for some time and it might be better to override
#asByteArray
> rather than just answering an incorrect value?
>
> 'ABCDEF' asUnicodeString asByteArray ==> #[65 0 66 0 67 0]

There are a number of patches in the forthcoming PL2 which make
UnicodeString more complete, and I will record a defect to get this included
in those. In the meantime I think you may find it sufficient just to replace
the 'self size' in String>>asByteArray with 'self basicSize'.

Regards

Blair