1 2 3 4 5 6 7 8 9
#!/usr/bin/env python import fileinput import unicodedata import sys for line in fileinput.input(): sys.stdout.write(unicodedata.normalize('NFC', line))