[Python-Dev] Docs for string methods ?
Wed, 05 Jul 2000 12:06:21 +0200
Fredrik Lundh wrote:
> mal wrote:
> > I've just checked in new string methods
> talking about string methods: how about providing an
> "encode" method for 8-bit strings too?
I've tossed that idea around a few times too... it could
have the same interface as the Unicode one (without default
encoding though). The only problem is that there are currently
no codecs which could deal with strings on input.
String codecs would have to be of the form 'latin1_utf8', that is,
have implicit knowledge about the input encoding (and not
only the output encoding as with Unicode codecs).
Python Pages: http://www.lemburg.com/python/