<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 3.1</li>
<li>Operating System / Platform =&gt; Windows 64 Bit</li>
<li>Compiler =&gt; Visual Studio 2015</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Why C programming language sucks is that char is only required to contain ASCII, not UTF-8.</p>
<p dir="auto">In Windows, <em>FILE *fopen(const char *filename, const char *mode);</em> only accepts Windows-1252, which has only 256 characters, while Unicode has 1112064. To use Unicode, The wide-char version _FILE *<em>wfopen(const wchar_t *filename, const wchar_t *mode);</em> is required.</p>
<p dir="auto">I suggest to add two alternative functions <em>imread_w</em> and <em>imwrite_w</em>, which accept wchar_t, in only Windows builds.</p>
<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/148" rel="nofollow">http://code.opencv.org/issues/148</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Илья Москвин on 2010-02-25 21:54
|| Priority: Low
|| Affected: None
|| Category: highgui-gui
|| Tracker: Feature
|| Difficulty: None
|| PR: None
|| Platform: None / None"><pre class="notranslate"><code class="notranslate">|| Илья Москвин on 2010-02-25 21:54
|| Priority: Low
|| Affected: None
|| Category: highgui-gui
|| Tracker: Feature
|| Difficulty: None
|| PR: None
|| Platform: None / None
</code></pre></div>
<h2 dir="auto">Unicode support requested</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="We use the new Python bindings and have to use non-english chars in window names and file pathes. Please, couldn@t you add Unicode support to OpenCV, if possible?"><pre class="notranslate"><code class="notranslate">We use the new Python bindings and have to use non-english chars in window names and file pathes. Please, couldn@t you add Unicode support to OpenCV, if possible?
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">David Ullmann on 2011-04-25 09:50</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="It's still not possible to build OpenCV (highgui module) with unicode support (platform windows 7, visual studio 2010, OpenCV SVN, 32 bit).
This makes it almost impossible to use OpenCV with wxWidgets &gt; 2.9, which defaults to unicode."><pre class="notranslate"><code class="notranslate">It's still not possible to build OpenCV (highgui module) with unicode support (platform windows 7, visual studio 2010, OpenCV SVN, 32 bit).
This makes it almost impossible to use OpenCV with wxWidgets &gt; 2.9, which defaults to unicode.
</code></pre></div>
<h5 dir="auto">None on 2012-02-12 18:57</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-   Description changed from We use the new Python bindings and have to
    use non-english chars in window n... to We use the new Python
    bindings and have to use non-english chars in window n... More"><pre class="notranslate"><code class="notranslate">-   Description changed from We use the new Python bindings and have to
    use non-english chars in window n... to We use the new Python
    bindings and have to use non-english chars in window n... More
</code></pre></div>
<h5 dir="auto">Vadim Pisarevsky on 2012-04-24 14:47</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1. OpenCV can create files with non-English names when they are encoded using UTF-8 and passed as normal text strings (tested on Linux and MacOSX).
2. Since OpenCV does not yet support Python 3.x and in Python 2.x text strings are encoded with UTF-8 (i.e. in the format as OpenCV expects it), it's possible to pass a unicode filename to OpenCV function directly using UTF-8 encoding.
3. On Windows it can work too, but instead of UTF-8 the current 1-byte encoding should be used.

So, it's possible (and there is always rename() function in the case of file names); Therefore, I lower the priority of the task.
-   Priority changed from High to Low
-   Assignee set to Vadim Pisarevsky"><pre class="notranslate"><code class="notranslate">1. OpenCV can create files with non-English names when they are encoded using UTF-8 and passed as normal text strings (tested on Linux and MacOSX).
2. Since OpenCV does not yet support Python 3.x and in Python 2.x text strings are encoded with UTF-8 (i.e. in the format as OpenCV expects it), it's possible to pass a unicode filename to OpenCV function directly using UTF-8 encoding.
3. On Windows it can work too, but instead of UTF-8 the current 1-byte encoding should be used.

So, it's possible (and there is always rename() function in the case of file names); Therefore, I lower the priority of the task.
-   Priority changed from High to Low
-   Assignee set to Vadim Pisarevsky
</code></pre></div>
<h5 dir="auto">Andrey Kamaev on 2012-08-16 15:23</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-   Category changed from highgui-images to highgui-gui"><pre class="notranslate"><code class="notranslate">-   Category changed from highgui-images to highgui-gui
</code></pre></div>