sysArgvUnicode

Use the win32 api to replace sys.argv with unicode arguments.

Based on http://code.activestate.com/recipes/572200/

lib.windows.sysArgvUnicode.fix()
lib.windows.sysArgvUnicode.win32_unicode_argv()

Uses shell32.GetCommandLineArgvW to get sys.argv as a list of Unicode strings.

Versions 2.x of Python don’t support Unicode in sys.argv on Windows, with the underlying Windows API instead replacing multi-byte characters with ‘?’.

Previous topic

shortcut

Next topic

other