import sys, unicodedata print repr(sys.version), teststr = u'\u092e\u093e\u0930\u094d\u0915 \u091c\u093c\u0941\u0915\u0947\u0930\u092c\u0930\u094d\u0917' if unicodedata.normalize('NFC', teststr) == teststr: print 'OK' else: print 'FAIL'