[Seaside] 3.9 and encoding in multipart fields
norbert at hartl.name
Thu Apr 26 17:57:11 UTC 2007
On Thu, 2007-04-26 at 10:29 -0700, Avi Bryant wrote:
> On 4/26/07, John Thornborrow <john at pinesoft.co.uk> wrote:
> > var _ 'thisisastring' squeakToIso isoToUtf
> > is the best I can find.
> Here's what I use on Squeak 3.7:
> ^ self <= 16r7F
> ifTrue: [self asCharacter asString]
> [self <= 16r7FF
> with: (16rC0 bitOr: (self bitShift: -6)) asCharacter
> with: (16r80 bitOr: (self bitAnd: (16r3F))) asCharacter]
> with: (16rE0 bitOr: (self bitShift: -12)) asCharacter
> with: (16r80 bitOr: ((self bitAnd: 16rFC0) bitShift: -6)) asCharacter
> with: (16r80 bitOr: (self bitAnd: 16r3F)) asCharacter]]
> Then you can do things like "247 asUTF8" (which is a division symbol,
> for example).
I don't know how encoding is done in 3.7. I think 3.7 and 3.8 are
similar as the big changes happened in 3.9 (as far as know). What
is the internal representation of strings after WAKom processing?
More information about the seaside