Change an encode/decode pair to support Python 2.3
Sun Jul 3 21:10:21 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Change an encode/decode pair to support Python 2.3
Skip decoding of an unicode string before encoding it in utf8, since it's not
supported by python 2.3
I have my doubts regarding this patch because I'm not sure removing the
decoding won't cause problems, but it went fine on my testing here using
latin1 and utf8 characters. I'd love to test it under a different encoding,
but I don't know any non-latin1 languages.
hunk ./darcsweb.cgi 75
- return s.decode(config.repoencoding).encode('utf8')
+ return s.encode('utf8')