Hi there,
I have a file with unicode characters I used url decoder code below on a large file, but what is funny is that it doesn't decode some lines,but when I use the code on a file with just that line it decodes it correctly.
import urllib.parse
for lines in open('mytxt1.txt'):
s = urllib.parse.unquote(lines,encoding='latin-1')
with open ('outtxt1.txt','a') as f1:
f1.write(s)
f1.close()
for example login=bob%40%3CSCRipt%3Ealert%28Paros%29%3C%2FscrIPT%3E.parosproxy.org is not decoded,
but when using just one line i get login=bob@<SCRipt>alert(Paros)</scrIPT>.parosproxy.org