I have string that look like this
text = u'\xd7\nRecord has been added successfully, record id: 92'. I tried to remove the escape character
\n from my string so that I could use it for another purpose.
str(text). It works but it could not remove character
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd7' in position 0: ordinal not in range(128)
Any way I could do to remove any escape character as such above from string? Thanks