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

_______________________________________________
help-smalltalk mailing list
help-smalltalk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to