Welcome to WSL!

Make yourself at home, but before posting, please may I ask you to read the following topics.


Posting 101
Server space, screenshots, and you

Thank you!

PS. please pretty please:


Image

API returns invalid UTF-8 in some cases [UPDATED]

User avatar
Igor Ridanovic
Posts: 42
Joined: Mon Apr 16, 2018 11:17 pm
Location: Los Angeles
Been thanked: 2 times
Contact:

API returns invalid UTF-8 in some cases [UPDATED]

#1

Post by Igor Ridanovic » Tue Sep 15, 2020 7:33 am

I edited this post because my initial conclusions were incorrect, although there still exists a Unicode issue within the API.

GetClipProperty() called on media pool item misinterprets non-ASCII characters for 'File Path.'

It inserts 0x3F which is UTF-8 question mark "?" in place of the Unicode characters. The behavior is identical in the internal console and when the script is executed externally, as well as via FuScript. Lua and Python 2.7 both produce the same result.

I've spent little time trying to run Python 3 in the interactive console. It doesn't work for me. Does anyone have Python 3 to test the Unicode support of GetClipProperty()? I suspect the issue is deeper though, because many, if not all other methods return valid Unicode encoded as UTF-8.