Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Bug Report: MImage::writeToFile does not support Japanese characters anymore

Bug Report: MImage::writeToFile does not support Japanese characters anymore

morinnicolas8944
Advocate Advocate
580 Views
1 Reply
Message 1 of 2

Bug Report: MImage::writeToFile does not support Japanese characters anymore

morinnicolas8944
Advocate
Advocate

With Maya 2020, MImage::writeToFile does not support Japanese characters in the pathname parameter. The file is output to the file system, but its name is made up of garbled characters.

 

We tried the same code under the same conditions with Maya 2019 and the output file was written with the correct name, so the problem appears to have been introduced with Maya 2020.

 

The tests were made with Maya running with the Japanese UI and the problem was observed with Maya 2020.4.

Accepted solutions (1)
581 Views
1 Reply
Reply (1)
Message 2 of 2

zewt
Collaborator
Collaborator
Accepted solution

It looks like it's converting everything to ASCII.  I reported a bug, but for now you can work around this by writing to a temporary file and then renaming the result.

 

0 Likes