I have a chat app and am working with nodejs
and socket.io
. But I'm having trouble coding names. The following name: Guilherme Loução is coming as: Guilherme Louçço . I already saved the file in UTF-8 format and it did not work. Is there any module to fix this inside 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);
});
...
});
...