[Python-Dev] Unicode strings as filenames
Martin v. Loewis
martin@v.loewis.de
Thu, 3 Jan 2002 23:58:23 +0100
> How is this exposed (if at all) to Python programmers? I happen to be
> developing on Linux, but the eventual delivery platform will be Windows. Is
> there no way to handle this in a cross-platform way?
Sure. Just pass Unicode strings to open(). Notice that this requires
Python 2.2, and expect exceptions. If it fails, fallback are up to
your application: it would be best to let the user know that the
choice of file name was not sensible.
Regards,
Martin