wit-ai / node-wit

Node.js SDK for Wit.ai
Other
2.04k stars 486 forks source link

Arabic characters in node-wit are not recognised by wit.ai #197

Open haydaralrikabi opened 4 years ago

haydaralrikabi commented 4 years ago

Arabic characters are not recognised by wit.ai when sent through client.message(). I get either an empty entities or the wrong one:

  {"_text":"سلام","entities":{},"msg_id":"18pE0IifO6KKNPw0y"}

Example of Arabic message:

client.message('سلام', {})
.then((data) => {
  console.log(JSON.stringify(data));
})
.catch(console.error);

This issue does not apply to English.

kitchWWW commented 4 years ago

Hello haydraalrikabi!

Thank you for bringing this to our attention. We are looking into the issue now and will reach out if we have questions or further followup.