469,281 Members | 2,450 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,281 developers. It's quick & easy.

how convert "\\xd6\\xd0\\xb9\\xfa" into "\xd6\xd0\xb9\xfa"

in python
dd = "\\xd6\\xd0\\xb9\\xfa"
d = "\xd6\xd0\xb9\xfa"
but how to convert one to other ?
thanks.

Apr 7 '06 #1
1 1792
ygao wrote:
in python
dd = "\\xd6\\xd0\\xb9\\xfa"
d = "\xd6\xd0\xb9\xfa"
but how to convert one to other ?

"\\xd6\\xd0\\xb9\\xfa".decode("string-escape") '\xd6\xd0\xb9\xfa' "\xd6\xd0\xb9\xfa".encode("string-escape")

'\\xd6\\xd0\\xb9\\xfa'

Peter
Apr 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by Lauren Quantrell | last post: by
1 post views Thread by Logan X via .NET 247 | last post: by
3 posts views Thread by Convert TextBox.Text to Int32 Problem | last post: by
7 posts views Thread by patang | last post: by
6 posts views Thread by patang | last post: by
4 posts views Thread by Edwin Knoppert | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.