0

I try to access a path on Windows network drive. E.g. z:\\ascii_name\non_ascii_name, or with such an umlaut it would be z:\\folder\folder with æ.

os.path.join returns z:\\\\folder\\folder with æ, but I get a FileNotFoundError. I'm running this using Anaconda3 on Windows 10. sys.getfilesystemencoding() returns 'utf-8'.

I found some Python2 related threads that didn't get me any further. I would be very grateful for help and ideas.

snakecharmerb
  • 47,570
  • 11
  • 100
  • 153
Henning
  • 95
  • 1
  • 1
  • 7
  • Unicode ("non-ascii") filenames work fine *if* your Python source code encoding is set correctly. Make sure you're actually saving your `.py` files as Unicode (e.g. UTF-8). Check the settings of your text editor or IDE. – Tomalak Sep 20 '21 at 09:01
  • See https://stackoverflow.com/q/33858512/18771 – Tomalak Sep 20 '21 at 09:01
  • æ and ø are not really "umlauts." The linguistic term refers to a systematic sound change like "tragen > trägt" (which to some degree does occur in Danish and Norwegian, too) but in a typographic context it usually refers to the trema / diaeresis diacritic. – tripleee Sep 20 '21 at 09:07

0 Answers0