help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Fun with unicode (on porting Seaside3)


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Fun with unicode (on porting Seaside3)
Date: Sat, 10 Aug 2013 15:24:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

Il 10/08/2013 11:06, Holger Hans Peter Freyther ha scritto:
> 
> I have some fun with WAEncoder of Seaside3 (I mostly care/think of
> Cypress and Monticello).
> 
> 
>   (Character codePoint: 128) asString
> 
> 
> "Character codePoint: 128" create a UnicodeCharacter and then >>#asString
> will call String class>>#with: which will create an exception. So I wonder
> what I should do about this? Should I change the code to go to 127 instead
> of 255?

If you load the Iconv package, the #asString method will convert the
UnicodeCharacter to a String encoded in the default encoding (usually
UTF-8).

But when I ported Seaside 3.0 (an old version is in packages/seaside) I
found it was much faster to use a chain of "if"s to do the encoding.  I
had sent the patch, but apparently it wasn't applied.  Perhaps you could
be luckier?

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]