Skip to content

How are special characters encoded? #15

@j6s

Description

@j6s

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions