Discordbot.js (sockets and bridge)
I'm creating a bot to communicate between discord and a game made in C++.
The "bridge" is created and working... But I'm having problems sending messages with utf8 accents
10 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
discord.js
└── [email protected]
node -v
v16.14.2
when send from discord to game, words with accent, have a bug on game
letters with utf8 no working
from game to discord, i solve by using "latin1"... but discord > game don't work
this part is responsable to send a message from discord to game
We only offer support for discord.js problems that use v13 and above
11 < 13
ok, i upgrade to
code updated too
i'm trying this... not working too
because this...
messages leaving discord for the game, undergo changes
how to transform to compatible?
hi, sorry for late
I believe the game is latin1 however, when the message leaves the game for node.js, the letters do not come out as desired
how to easily convert?
i found this:
GitHub
GitHub - bnoordhuis/node-iconv: node.js iconv bindings - text recod...
node.js iconv bindings - text recoding for fun and profit! - GitHub - bnoordhuis/node-iconv: node.js iconv bindings - text recoding for fun and profit!
my code:
i'm testing... but have error