text: #!/usr/bin/env python
  # -*- coding: utf8 -*-
  
  import sys, os
  
  FS_ENCODING = sys.getfilesystemencoding()
  
  for p in sys.argv[1:]:
      print "p = %s" % repr(p)
  
      if not isinstance(p, unicode):
          up = unicode(p, encoding="latin-1", errors="strict")
          
      print "up = %s" % repr(up)
      print "up.utf8 = %s" % up.encode("utf8")
  
      print "Command line file exists = %s" % os.path.exists(p)
      print "Unicode file exists = %s" % os.path.exists(up)
      print "%s file exists = %s" % (
          FS_ENCODING, os.path.exists(up.encode(FS_ENCODING))
      )
  