I have setup a bot that will ask the user for the product he is interested in and will query the matching products from postgresql database using http request servive.
it woking fine for english name like GR5 2007
but when the input is arabic i get the following in the log and not result is returned also there are many products matching the user input.
when the input is english (GR52017)
I get the correct result and it’s showing all products matching the GR52017
[22/Sep/2017 08:16:40] “GET /ads/777/GR52017/ HTTP/1.1” 200 1179
but when the input is arabic (هاتف)
i get the following garbage
[22/Sep/2017 08:29:57] code 400, message Bad request syntax (‘GET /ads/777/غرÙ\x81Ø©%20Ù\x86Ù\x88Ù\x85/ HTTP/1.1’)
[22/Sep/2017 08:29:57] “GET /ads/777/غرÙ�Ø©%20Ù�Ù�Ù�/ HTTP/1.1” 400 -