Does anyone know how to replace a non ascii char in python3? I use as an example but it doesn't work the way I want to, that is to modify the new var as a string.
body = "ALYSS - PYRAMID ♅"
newbody = body.encode('ascii', 'ignore')
Does anyone know how to replace a non ascii char in python3? I use as an example but it doesn't work the way I want to, that is to modify the new var as a string.
body = "ALYSS - PYRAMID ♅"
newbody = body.encode('ascii', 'ignore')