J
Junaid
I want to do replacements in a utf-8 text file. example
f=open("test.txt","r") #this file is uft-8 encoded
raw = f.read()
txt = raw.decode("utf-8")
txt.replace{'English', ur'ഇംഗàµà´²àµ€à´·àµ') #replacing raw unicode string,
but not working
f.write(txt)
f.close()
f.flush()
please, help me
thanks
f=open("test.txt","r") #this file is uft-8 encoded
raw = f.read()
txt = raw.decode("utf-8")
txt.replace{'English', ur'ഇംഗàµà´²àµ€à´·àµ') #replacing raw unicode string,
but not working
f.write(txt)
f.close()
f.flush()
please, help me
thanks