1.2k questions
1.4k answers
361 comments
339 users
You can use a regexp website to find any non utf8 characters using the below example. /[^\x00-\x7F]/g
Code example of how to use the regex:
var tempMessage = String(message.getNode('/')); var newMessage = tempMessage.replace(/[^\x00-\x7F]/g, ''); message.setNode('/', newMessage);