Python Convertir secuencia de escape Unicode
import re
unconverted_str = "abcdefg\\032qwerty"
#see how python interprets you string, should be like "aaa\xxxbbb"
print(unconverted_str)
converted_str = ""
reg = re.findall("\\\\[0-9].{2}", unconverted_str)
char_esc_sqc = [chr(int(elem[2:])) for elem in reg]
for char in char_esc_sqc:
converted_str = re.sub("\\\\[0-9].{2}", char, unconverted_str, 1)
print(converted_str)
Mike Oxlong