[1229] Support Unicode in Chatbox OSC via HTML character references
CyberKitsune
Hello!
Currently the in-game chatbox support entering utf-8 and some unicode (such as emojis) via the in-game keyboard.
However, if you choose to feed the chatbox via OSC, you can ONLY send ascii characters, due to utf-8 and unicode not being supported in the OSC protocol.
As a suggestion, I propose making the Chatbox OSC component automatically translate HTML character references (see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references) into Unicode after receiving the OSC message, but before running the character limit check and displaying the message.
This would mean if I wanted to send the string:
頼もう!
I would send:
頼もう!
One can do this programmatically in python3 very easily:
print("頼もう!".encode('ascii', 'xmlcharrefreplace').decode())
The resulting HTML character entities themselves are guaranteed to be in all ASCII, and therefore be OSC compliant!
Log In
TheHelpfulHelper
Alternative solution / similar canny: https://feedback.vrchat.com/feature-requests/p/support-unicode-characters-in-the-chatbox-over-osc
CyberKitsune
I have also cross-posted this as a bug on the vrchat-community/osc github as requested by Momo in Discord here: https://github.com/vrchat-community/osc/issues/137