Page MenuHome

fix T53841: FBX import: use replacement character when utf-8 decoding fails
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Jan 20 2018, 12:02 PM.

Details

Summary

importer asserted in some places (but not the one in the report)
removed all asserts and used pythons 'replace' method mentioned in
https://docs.python.org/3/howto/unicode.html#the-string-type

Diff Detail

Event Timeline

Will apply the 'replace' option (even though, as already said, FBX strings should always only be utf-8 encoded), but really do not see why commenting out the asserts? Those should never ever be triggered, else file is really broken (or unsupported new-year fashion of FBX :( ).

This revision is now accepted and ready to land.Jan 22 2018, 9:51 AM