--- x2utf8.python2.2+ Tue Jan 20 20:03:38 2004 +++ x2utf8 Wed Jan 21 11:39:50 2004 @@ -21,18 +21,18 @@ import sys -if sys.hexversion < 0x02020000: - sys.exit("This script requires Python 2.2 or greater. Sorry.") +if sys.hexversion < 0x02000000: + sys.exit("This script requires Python 2.0 or greater. Sorry.") def main(): input = sys.stdin.read() try: - u = input.decode("utf_8") + u = unicode(input, "utf_8") except UnicodeError: try: - u = input.decode("iso8859_1") + u = unicode(input, "iso8859_1") except UnicodeError, v: sys.exit("Error while trying to decode the input as " "ISO 8859-1: %s" % v)