wit icon indicating copy to clipboard operation
wit copied to clipboard

Adding Arabic values to an entity via curl

Open mennafateen opened this issue 8 years ago • 7 comments

Using this command:

curl -XPUT 'https://api.wit.ai/entities/location_3?v=20180514'
-H 'Authorization: Bearer $mytokenhere'
-H 'Content-Type: application/json; charset: utf-8'
-d '{ "values":[ { "value": "البنفسج" }, { "value": "اللوتس" }, { "value": "المستثمرين الشمالية" }, { "value": "المستثمرين الجنوبية" } ]}'

All I get on wit.ai are question marks. image

What is causing this problem?

mennafateen avatar May 14 '18 11:05 mennafateen

We are looking into it, thank you for your feedback

blandinw avatar May 14 '18 13:05 blandinw

Hey @mennafateen,

Tried the curl you provided, but I do see the Arabic values as inputted (tested on Chrome, Firefox, Edge, Internet Explorer, Safari).

screen shot 2018-05-15 at 2 37 30 pm

May I ask what browser you're using to view these values?

jtliao avatar May 15 '18 21:05 jtliao

Hey @jtliao, I'm using Google Chrome but I'm still receiving those question marks.
image Is there something I'm missing?

mennafateen avatar May 16 '18 07:05 mennafateen

hey @mennafateen,

Can you provide your App ID? In the meantime, can you try loading the app on Chrome Incognito mode or a different browser?

jtliao avatar May 16 '18 17:05 jtliao

Hey @jtliao,

I actually just found a workaround. I figured the problem might have been with the terminal since the Arabic characters seemed a bit weird so I tried sending the request from another terminal and it worked. I apologize for wasting your time and thank you for your help!

mennafateen avatar May 16 '18 17:05 mennafateen

No worries :)

jtliao avatar May 16 '18 17:05 jtliao

Hey @jtliao,

I actually just found a workaround. I figured the problem might have been with the terminal since the Arabic characters seemed a bit weird so I tried sending the request from another terminal and it worked. I apologize for wasting your time and thank you for your help!

I have encountered the same issue, I have tried cmd, cmder and Windows Terminal, but no luck. Which terminal you have used?

mrghofrani avatar Aug 19 '20 17:08 mrghofrani