node-oscar icon indicating copy to clipboard operation
node-oscar copied to clipboard

How are special characters encoded?

Open j6s opened this issue 11 years ago • 0 comments

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?

j6s avatar Sep 10 '14 16:09 j6s