getCommandLineParameterArray() has trouble with utf8


JUCEApplicationBase::getCommandLineParameterArray() builds a StringArray directly from argv , if the command-line contains utf8 characters, jassert() happens.

It should do the same as getCommandLineParameters(), which assumes the command line is utf8 encoded. For example:

  StringArray lst;
  for (int i = 1; i < juce_argc; ++i)
      String arg { CharPointer_UTF8 (juce_argv[i]) };
  return lst;