Skip to content

Instantly share code, notes, and snippets.

@ratazzi
Created September 15, 2023 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ratazzi/eb71dc5ea53030ca04ccbdd981275213 to your computer and use it in GitHub Desktop.
Save ratazzi/eb71dc5ea53030ca04ccbdd981275213 to your computer and use it in GitHub Desktop.
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