The issue
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 using /chatbox/input, you can ONLY send ascii characters, due to utf-8 and Unicode not being supported in the OSC protocol. This means you can't send many foreign-language characters or emojis, which the Chatbox does support if you use the in-game keyboard.
The suggestion
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 instead send:
頼もう!
One can do this programmatically in python3 very easily:
(This is a cross-post from my Canny Post on VRChat feedback with a similar name)
The issue 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 using
/chatbox/input
, you can ONLY send ascii characters, due to utf-8 and Unicode not being supported in the OSC protocol. This means you can't send many foreign-language characters or emojis, which the Chatbox does support if you use the in-game keyboard.The suggestion 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 instead send:
One can do this programmatically in python3 very easily:
The standard also supports mixing and matching ascii and non-ascii
The resulting HTML character entities themselves are guaranteed to be in all ASCII, and therefore be OSC compliant!