You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Above code produces a file named СЂСѓСЃСЃРєРѕРµ_название.png instead of русское_название.png, like grDevices::png would. If a path has a UTF-8 in folder names, device would fail to write with agg could not write to the given file error.
I've tried to wrap filename with enc2native or enc2utf8, but it doesn't seem to help.
Activity
thomasp85 commentedon Aug 2, 2021
Thanks for this, that is an error on my part as I don't handle encoding correctly on the input string...
thomasp85 commentedon Oct 6, 2021
Can I get you to test the current development version and see if your issue is fixed?
Darxor commentedon Oct 10, 2021
Thanks for the attention on the issue!
I've tried current dev version, and the problem is still there.
Current session info:
thomasp85 commentedon Oct 11, 2021
hmm... in that case it is a bit more complicated... Windows have never been particularly kind to UTF-8 😕
I'll try to see if I can come up with a fix
thomasp85 commentedon Oct 13, 2021
Can I get you to try with current level again?
thomasp85 commentedon Oct 13, 2021
Also, can I get you to test with a tiff file as well? libtiff uses its own file open functions so I don't know if it exhibit the same issues
Darxor commentedon Oct 13, 2021
Issue for png seems to be solved now, yay!
Works nicely for png, jpeg and ppm now. But Its there for tiff though, you were right on checking that.
thomasp85 commentedon Oct 14, 2021
Thanks for confirming - tiff is a more difficult mountain to climb so it will probably not get fixed for this release, but I'll look into a fix later.
Keeping this open to remind me