I have a string returned by Elasticsearch:
\n\nESM Management LLC (\u201cESM\u201d) provides investment
When I print the string, the string is represented exactly as shown above.
I've tried decoding, i.e. s.decode('utf8')
, but I think there is something fundamental I don't understand about the encoding/decoding process.
How can I convert this string so the new lines are rendered and the unicode codes are converted to the symbols they represent?
This is what I'm looking for:
.>>> s = '\n\nESM Management LLC (\u201cESM\u201d) provides investment'
.>>> s
.
.
.ESM Management LLC ("ESM") provides investment