I have a unicode filename that I would like to open. The following code:
cmd = u\'cmd /c \"C:\\\\Pok\\xe9mon.mp3\"\' cmd = cmd.encode(\'utf-8\') subprocess.P
>>> subprocess.call(['start', u'avión.mp3'.encode('latin1')], shell=True) 0
There's no need to call cmd if you use the shell parameter The correct way to launch an associated program is to use the cmd's start built-in AFAIK.
cmd
shell
start
My 2c, HIH.