node-oscar
node-oscar copied to clipboard
How are special characters encoded?
Hello.
I am using node-oscar to build a temporary fix for a friend (He can not join chatrooms, so i built a bot to forward the chat).
It works perfectly, however i can not figure out how ot encode special characters or more specifically german umlauts (ä,ö,ü,...) when receiving and sending them.
I tried UTF-8 encoding them, which results in it being \uFFFD (replacement character). Trying to use HTML for it (ü) results in the message not being sent.
My question now is: Is there a way to receive a message with a umlaut in it, if necessary convert it and then send it to someone else?