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)
True
--
Duncan Booth http://kupuguy.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
