I am trying to replace occurrence of two consecutive special characters with space for that i have written below code but i am not getting proper result.
Code:
import re
text = "08391@#AP@#RETSEHC@#TSEW@#TS@#ELDDIB@#E@#163"
deciphername = ciphername[::-1]
deciphername.replace("@#"," ")
Output:
'361 E BIDDLE ST\xef\xbf\xbd\xef\xbf\xbdWEST CHESTER\xef\xbf\xbdPA\xef\xbf\xbd19380'
Expected Output:
361 E BIDDLE ST WEST CHESTER PA 19380
What i am doing wrong ?