I just figure out the how-to: # first we open and read in chars as in utf-8 encoding ansiLine = line.decode('utf-8', 'ignore') # then writing it into another file in any encoding you like, it's big5 in my case. src_handle.write(ansiLine.encode('big5', 'ignore'))
-- This is a UTF-8 formatted mail ----------------------------------------------- James C.-C.Yu
-- http://mail.python.org/mailman/listinfo/python-list