abhishek <[EMAIL PROTECTED]> wrote:
> hello group,
> i want to represent and store a string u'\x00\x07\xa7' as
> '\x00\x07\xa7'. any ideas on how to achieve this.
You can use latin-1 encoding.
>>> u = ''.join(unichr(c) for c in range(256))
>>> [ord(c) for c in u.encode('latin1')] == range(256)
abhishek wrote:
hello group,
i want to represent and store a string u'\x00\x07\xa7' as
'\x00\x07\xa7'. any ideas on how to achieve this.
You want to store it in the form of the repr() of the string? It is
possible to use repr() to get a bytestring to store and to use eval() to
create a unic
hello group,
i want to represent and store a string u'\x00\x07\xa7' as
'\x00\x07\xa7'. any ideas on how to achieve this.
--
http://mail.python.org/mailman/listinfo/python-list