import codecs

f = codecs.open(pth, 'r', 'utf-8')
data = f.read()
f.close()

## data = re.sub ...

f = codecs.open(pth, 'w', 'utf-8')
f.write(data)
f.close()

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to