Use the format
function, and insert a unicode
string:
p = u'،;؛¿!"\])}»›”؟%٪°±©®।॥…'
text = u"this, is a sentence with weird» symbols… appearing everywhere¿"
for i in p:
text = text.replace(i, u' {} '.format(i))
print(text)
Output
this, is a sentence with weird » symbols … appearing everywhere ¿