...need to use __wargv and convert that to UTF-8 myself.
(Correction: looks like __wargv is null unless compiled with UNICODE define, need to find another solution)
PS: but maybe it works to convert from the codepage-encoded __argv to UTF-8 MultiByteToWide (codepage -> UTF-16) followed by WideToMultiByte (UTF16 -> UTF8)
PPS: alternatively GetCommandLineW() + CommandLineToArgvW(), and convert that to UTF-8
I can help with this. I had success with GetCommandLineW() + CommandLineToArgvW() in my own platform layer.
If you find the time to provide a PR that would be great :)
ok fixed in #211