Message162156
| Author |
javahaxxor |
| Recipients |
hynek, javahaxxor, ned.deily, r.david.murray, ronaldoussoren |
| Date |
2012年06月02日.17:41:42 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1338658903.49.0.860147849893.issue14986@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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") |
|