Managing non-ascii filenames in python

2009-07-19 Thread pdenize
I created the following filename in windows just as a test - “Dönåld’s™ Néphêws” deg°.txt The quotes are non -ascii, many non english characters, long hyphen etc. Now in DOS I can do a directory and it translates them all to something close. Dönåld'sT Néphêws deg°.txt I thought the correct way

Help needed with filenames

2009-05-10 Thread pdenize
I have a program that reads files using glob and puts them into an XML file in UTF-8 using unicode(file, sys.getfilesystemencoding()).encode(UTF-8) This all works fine including all the odd characters like accents etc. However I also print what it is doing and someone pointed out that many