Using python, given that string = "Tiësto & Sevenn - BOOM (Artelax Remix)" which contains non-ascii characters, how do I use unidecode to fix the string so stripped clean of non-ascii characters?
string = random.choice(list(open('data.csv'))).rstrip()
print "[+] Starting search for:", string
artistname = string.rsplit(' - ', 1)[0]
songname = string.rsplit(' - ', 1)[1]
The snip above gives me: artistname = Tiësto & Sevenn songname = BOOM (Artelax Remix)
As you can see, the artistname still contains non-ascii characters. How do I use unidecode to fix this issue?