Python encoding - Nothing works

Posted by Luiz Fernando on Stack Overflow See other posts from Stack Overflow or by Luiz Fernando
Published on 2011-02-28T14:44:27Z Indexed on 2011/02/28 15:25 UTC
Read the original article Hit count: 312

Filed under:
|
|

I've been looking the answers here in this web site, but nothing have worked so far. The problem is:

In the database, strings are saved like that one: at √s = 7 TeV with.

And the reason is that the "escape" JavaScript function was used.

I was not able to "unescape" these strings in Python yet. I tried to use "eval", "decode", "re.sub" and others, but without success. So please, which function can I use to get it right?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about python