Created
September 15, 2023 08:01
-
-
Save ratazzi/eb71dc5ea53030ca04ccbdd981275213 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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