[Web-SIG] Strings in Jython [Graham's WSGI for py3]
armin.ronacher at active-4.com
Thu Sep 17 17:52:53 CEST 2009
This is my first reply in a list of replies for Grahams lengthy blog
post about WSGI 3 . I break it up into multiple separate threads so
that this can be discussed easier.
> What should be highlighted is that for Jython, as I understand it at
> least, when reading from a socket connection it returns a unicode
> string. That unicode string will only have characters in the range
> \u0000 through \u00FF, inclusive. Further, it is possible to transcode
> that unicode string without needing to go through a separate byte
> string type.
On Jython 2.5 (the only one I tested) there is a 'str' and 'unicode'
type and sockets return strings. I can't see much difference to cpython
Is the Jython unicode issue really (still) relevant?
I can see that IronPython has only one string type, but they are doing
fine handling binary data in their unicode? ones.
More information about the Web-SIG