unicodedataを使えばよい。
$ python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import unicodedata >>> print unicodedata.normalize(u'NFKC', u'テスト①%@') テスト1%@
Challange IT For Future
unicodedataを使えばよい。
$ python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import unicodedata >>> print unicodedata.normalize(u'NFKC', u'テスト①%@') テスト1%@