Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to pass UTF/Unicode string path to imread in Java?

I am trying to open images in Java using 2.4.9 ocv on Windows. But using simple imread(String) fails for paths that contain non-ascii characters (such as "Š"). Unfortunately, there is no way to change internal String encoding in Java.

So how to pass these paths?