MonkeeSage wrote: > Looks like escape() can be a bit simpler... > > def escape(s): > result = [] > for char in s: > result.append("\%o" % ord(char)) > return ''.join(result) > > Regards, > Jordan Very neat! Thanks a lot... Michael -- http://mail.python.org/mailman/listinfo/python-list
- converting to and from octal escaped UTF--8 Michael Goerz
- Re: converting to and from octal escaped UTF--8 Michael Goerz
- Re: converting to and from octal escaped UTF--8 MonkeeSage
- Re: converting to and from octal escaped UTF... Michael Goerz
- Re: converting to and from octal escaped UTF--8 Michael Spencer
- Re: converting to and from octal escaped UTF--8 MonkeeSage
- Re: converting to and from octal escaped UTF--8 MonkeeSage
- Re: converting to and from octal escaped UTF... Michael Goerz
- Re: converting to and from octal escaped... Piet van Oostrum
- Re: converting to and from octal escaped... MonkeeSage