I\'m having problems reading from a file, processing its string and saving to an UTF-8 File.
Here is the code:
try: filehandle = open(filename,\"
You can't do that using open. use codecs.
when you are opening a file in python using the open built-in function you will always read/write the file in ascii. To write it in utf-8 try this:
import codecs file = codecs.open('data.txt','w','utf-8')