Python regex and accented Expression [duplicate]
问题 This question already has answers here : How to prevent str to encode unicode characters as hex codes? (2 answers) Closed 3 years ago . I have problem with my Python RegEx treatment bloc when it deals with accented Expression. When I run my code: import re title = ur"Titre : c'est pas gréable à Infos:" print title m = re.findall(":(.+?) Infos",title , re.UNICODE) print unicode((m)) i have this result: Titre : c'est pas gréable à Infos: [u" c'est pas gr\xe9able \xe0"] I need to be able to keep