santanudas
Technical User
Greetings all,
I'm a python newbie, so my apology for being silly (if it is) with my question.
I was trying to convert converting HTML markup code to human readable text and the sample line I took form the iTumes music library, which is a .xml file.
I was expecting to see "Ladies & Gentlemen_ The Best Of George Michael" in stead it returns "Ladies & Gentlemen_ The Best Of George Michael" i.e. it's converting the %* thing but not the & and stuff like that. Any one know what I'm doing wrong?
Thanks in advance for your help. Cheers!!!
I'm a python newbie, so my apology for being silly (if it is) with my question.
I was trying to convert converting HTML markup code to human readable text and the sample line I took form the iTumes music library, which is a .xml file.
Code:
import os, sys, string
import urllib;
xmlString = "<string>file://localhost/Volumes/DataCenter/iTunes/iTunes%20Music/George%20Michael/Ladies%20&%20Gentlemen_%20The%20Best%20Of%20George%20Michael/Father%20Figure.m4a</string>
String = xmlString.split("/")
iX = urllib.unquote(String[-3])
print "Album name: " + iX
I was expecting to see "Ladies & Gentlemen_ The Best Of George Michael" in stead it returns "Ladies & Gentlemen_ The Best Of George Michael" i.e. it's converting the %* thing but not the & and stuff like that. Any one know what I'm doing wrong?
Thanks in advance for your help. Cheers!!!