When trying to replace '\' in python, the data changed and give me unknown letters.
i have tried string.replace, re.sub, regex_replace
a = '70\123456'
b = '70\123\456'
a = a.replace('\\','-')
b = b.replace('\\','-')
Expected Result:
a = '70-123456'
b = '70-123-456'
But The Actual Result is:
a = 70S456
b = 70SĮ
What is the problem and how to solve it?