Swazoo.HTTPResponse ok entity: 'Hello Euro €!'
... where euro symbol is 16r20AC, how do I go about returning these? Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Together with other fixes I put in to support UTF8 via Swazoo the following seems to do the trick,
HTTPResponse>>entity: anEntity entity := anEntity isString ifTrue: [anEntity asByteArrayEncoding: #utf8] ifFalse: [anEntity asByteArray]. Any plans to include support for UTF8 out of the box? I've heard the whole "Swazoo is just a server, its up to you to figure out encodings", but not quite buying it personally having spent some time hacking it to work ;) Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Boris Popov > Sent: Tuesday, July 24, 2007 10:26 AM > To: Seaside - general discussion > Subject: [Seaside] Swazoo - Improper store into indexable object > > Swazoo.HTTPResponse ok entity: 'Hello Euro €!' > > ... where euro symbol is 16r20AC, how do I go about returning these? > > Cheers! > > -Boris > > -- > +1.604.689.0322 > DeepCove Labs Ltd. > 4th floor 595 Howe Street > Vancouver, Canada V6C 2T5 > http://tinyurl.com/r7uw4 > > [hidden email] > > CONFIDENTIALITY NOTICE > > This email is intended only for the persons named in the message > header. Unless otherwise indicated, it contains information that is > private and confidential. If you have received it in error, please > notify the sender and delete the entire message including any > attachments. > > Thank you. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi Boris,
Boris Popov wrote: > Together with other fixes I put in to support UTF8 via Swazoo the following seems to do the trick, > > HTTPResponse>>entity: anEntity > entity := anEntity isString > ifTrue: [anEntity asByteArrayEncoding: #utf8] > ifFalse: [anEntity asByteArray]. > > Any plans to include support for UTF8 out of the box? I've heard the whole "Swazoo is just a server, > its up to you to figure out encodings", but not quite buying it personally having spent some time > hacking it to work ;) You heard well and I still argue that utf8 is a duty of web framework, because it knows better when to convert strings and when not. That specially true on the input side. Swazoo just server content as it been pure binary. Not doing utf8 is therefore an inefficiency of Seaside, not Swazoo, IMHO. And as you actually did already, it is simple to add that on output side. Just that you need to do similar on input side too, which is a bit more demanding. Best regards JAnko -- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Boris Popov, DeepCove Labs (SNN)
Point is, the fixes I made are in the glue code, not even seaside, and ones I didn't want to spend time on but kind of had to. I had no such problems on wtk version and that's all I'm saying as far as basic comparison goes. Also, the virtual sites caused me more grief than I wanted as I couldn't find a way to listen on all interfaces like I could with tiny. Again, I was told that it was a useful feature even though I know it wasn't for me. I ended up with an ugly deployment hack there that sets up sites on all local interfaces that I can discover, something I would not have to do with a simpler wildcard broker in front. Please don't take it personally, but if you want swazoo to be a server of choice for seaside, these kinds of things would need to be accounted for, not simply dismissed IMHO. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |