syoyo / tinyexr

Tiny OpenEXR image loader/saver library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UTF8 Support

Theverat opened this issue · comments

Hi,

you might want to use a wrapper for fopen similar to the one stb_image uses: https://github.com/nothings/stb/blob/f67165c2bb2af3060ecae7d20d6f731173485ad0/stb_image.h#L1193
This would make it possible to load files with non-latin characters in the filepath on Windows.

Thanks for writing this library!
Best,
Simon

You may also need to consider MinGW codepath:

syoyo/tinygltf#221

PR is always welcome!

Added UTF-8 filename support for Windows in utf8 branch and also merged it to master branch.
Latest commit is here:

9d89b54