[AFA]/usr/afa>cat tsbyte.py
# !/usr/bin/env python
# -*- coding: gbk -*-
a='成功'
print a.encode('string_escape')
[AFA]/usr/afa>
[AFA]/usr/afa>python tsbyte.py
xb3xc9xb9xa6
[AFA]/usr/afa>python
Python 2.7.2 (default, Jan 1 2012, 19:35:59) [C] on aix6
Type "help", "copyright", "credits" or "license" for more information.
>>> print 'xb3xc9xb9xa6'
成功