I think you do something like this (untested): import codecs
def transcode(infile, outfile, incoding="shift-jis", outcoding="utf-8"): f = codecs.open(infile, "rb", incoding) g = codecs.open(outfile, "wb", outcoding) g.write(f.read()) # If the file is so large that it can't be read at once, do a loop which # reads and writes smaller chunks # while 1: # block = f.read(4096000) # if not block: break # g.write(block) f.close() g.close() Jeff
pgp72dlRWI08A.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list