Adrian Bastholm <javahax...@gmail.com> added the comment: The char in question: 'å'. It is a folder with this character in the name. My encoding is UTF-8. Running print("\u030a") gives a blank line
U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE General Character Properties In Unicode since: 1.1 Unicode category: Letter, Uppercase Canonical decomposition: U+0041 LATIN CAPITAL LETTER A + U+030A COMBINING RING ABOVE Various Useful Representations UTF-8: 0xC3 0x85 UTF-16: 0x00C5 C octal escaped UTF-8: \303\205 XML decimal entity: Å Annotations and Cross References See also: • U+212B ANGSTROM SIGN Equivalents: • U+0041 LATIN CAPITAL LETTER A U+030A COMBINING RING ABOVE The code: def traverse (targetDir): currentDir = targetDir dirs = os.listdir(targetDir) for entry in dirs: if os.path.isdir(entry): print("Traversing " + entry) traverse(entry) else: print("Not dir: " + entry) if os.path.isfile(entry): print("Processing " + " " + currentDir + " " + entry) else: print("Not file: " + entry) print("\n") ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14986> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com