Maya Shotgun Panel & unicode characters

So!

Let me share what I found out yesterday after my look into it.

It is definitely the case of shotgun not decoding the characters in several places.
Most likely, only two changes are needed for the search popup to not error out.

  1. add a try/except clause, modifying the ‘matching’ var by adding .decode(‘utf-8’) in the

C:\Users\userName\AppData\Roaming\Shotgun\bundle_cache\app_store\tk-framework-qtwidgets\v2.8.6\python\search_completer\search_result_delegate.py

file, in the _underline_search_term proc.

  1. add a .decode('uft-8) at the end of a shotgun_globals.get_type_display_name(link_entity_type) return variable in the “_render_result” proc in the

C:\Users\userName\AppData\Roaming\Shotgun\bundle_cache\app_store\tk-framework-qtwidgets\v2.8.6\python\search_completer\global_search_result_delegate.py

file.

As for fix, this seems to have taken care of the problem, but it may not be perfect. There’s other places that might need this, and I’m not familiar so much with the toolkit yet myself.

But either way, hope this helps someone.

1 Like