A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-January/019114.html below:

[Python-Dev] Unicode strings as filenames

[Python-Dev] Unicode strings as filenames [Python-Dev] Unicode strings as filenamesMartin 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4