How can be replaced in string these characters: r'\xb0' with r'\260', I have tried it to do with:
test = u'\xb0C'
test = test.encode('latin1')
test = test.replace(r'\xb0', r'\260')
But it doesn't work. The problem is, that I must to write the data into a file in octal format (e.g. '\260C') and not in hex format etc.