k3str is a collection of string utilities.
k3str is a component of pykit3 project: a python3 toolkit set.
pip install k3str
>>> repr(to_bytes('我'))
"b'\\xe6\\x88\\x91'"
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com