Unicode Chars in Windows Path

Chris Angelico rosuav at gmail.com
Wed Apr 2 23:10:12 EDT 2014


On Thu, Apr 3, 2014 at 1:37 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> Windows accepts both forward and backslashes in file names.

Small clarification: The Windows *API* accepts both types of slash
(you can open a file using forward slashes, for instance), but not all
Windows *applications* are aware of this (generally only
cross-platform ones take notice of this), and most Windows *users*
prefer backslashes. So when you come to display a Windows path, you
may want to convert to backslashes. But that's for display.

ChrisA



More information about the Python-list mailing list