0

I'm using Visual Studio Community 2017. The path/filename of a video file I'm trying to open in Unicode and VideoCapture apparently doesn't like that. Specifically, the video filename is passed in as an argument to my executable.

I would have liked to use the OpenCV CommandLineParser but that doesn't seem to support Unicode strings either.

So what's the recommended approach for handling Unicode strings passed in as an argument?

Myke623
  • 1
  • 1
  • Welcome to StackOverflow. Please take the [tour](http://stackoverflow.com/tour) have a look around, and read through the [HELP center](http://stackoverflow.com/help), then read [How to Ask Question](http://stackoverflow.com/help/how-to-ask), [What types of questions should I avoid asking?](http://stackoverflow.com/help/dont-ask) and provide a [MCVE : Minimal, Complete, and Verifiable Example](http://stackoverflow.com/help/mcve). If people around can easily read and understand what you mean, or what the problem is, they'll be more likely willing to help :) – Dwhitz Mar 18 '18 at 11:35
  • 1
    For images you can see [here](https://stackoverflow.com/a/43369056/5008845). For videos... well you'd better rename your file, or create an alias through a link – Miki Mar 18 '18 at 12:34
  • Thanks @Miki... that's the answer I was afraid of! ;) – Myke623 Mar 19 '18 at 03:07

0 Answers0