I want to delete all the characters "\L" that I find when i read the file. I tried to use this function when I read a line:
def cleanString(self, s):
if isinstance(s, str):
s = unicode(s,"iso-8859-1","replace")
s=unicodedata.normalize('NFD', s)
return s.encode('ascii', 'ignore')
But it doesn't delete this character. Does someone know how to do it?
I tried using the replace
function as well, but it is not better:
s = line.replace("\^L","")
Thanks for your answers.