I have a string in the formemail [ à ] example.com
I want to make it [email protected]
.
I tried :
print email.replace(u"\xa0", "@")
print email.replace(" [ à ] ", "@")
print email.replace(" à ", "@")
email = email.replace(u" à ", "@")
but I always get this error:
'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)