KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a string in python 3 that has several unicode representations in it, for example: t = 'R\\u00f3is\\u00edn' and I want to convert t so that it has the proper representation when I print it, ie: >>> print(t) Róisín However I just get the original string back. I've tried re.sub and some others, but I can't seem to find a way that will change these characters without having to iterate over each one. What would be the easiest way to do so?
Tags (comma-separated)
Save Edits
Cancel