Steven D'Aprano added the comment: By the way, perhaps a simpler demonstration which is more likely to render correctly on most people's systems would be to use Latin-1 combining characters:
py> s1 = 'àéîõü' py> s2 = unicodedata.normalize('NFD', s1) # decompose into combining chars py> s1, s2 ('àéîõü', 'àéîõü') py> assert len(s1) == 5 and len(s2) == 10 py> ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30608> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com