0
I have a chat app and I’m working with nodejs
and socket.io
. But I’m having trouble with name coding. The following name: Guilherme Loução is coming as: Guilherme Louã§. I have already saved the file with UTF-8 format and it has not solved. There is some module to fix this inside the socket.io?
Code:
...
io.sockets.on('connection', ioJwt.authorize({
secret: jwtSecret,
timeout: 15000
})).on('authenticated', function(socket) {
socket.on('join', function(data){
console.log(data.name);
});
...
});
...