Skip to content

Instantly share code, notes, and snippets.

@ratazzi
Created September 15, 2023 08:01
import glob
import platform
import unicodedata
from pathlib import Path
filename = str(Path(".") / 'Café.txt')
open(filename, 'w').write('test')
open(unicodedata.normalize('NFKD', filename), 'w').write('test')
print(platform.platform())
print([ascii(f) for f in glob.glob(str(Path(".") / 'Ca*.txt'))])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment