I have created a chatbot that is multilingual which is working fine for other languages. But hindi letters are not being recognized and showing gibberish. The hindi text is being supplied by an API. The API is successfully sending the hindi text but in outsystems it is not supporting.
Hi Aman,
This could be a problem with the API not telling OutSystems it's using UTF-8, but instead assuming it's ISO-8859-1. To see if this is the case, increase the logging of the REST API, and check what the API sends back (in the Integration Logging in Service Center). You should see a line like this in the header of the returned data:
Content-Type:application/json;charset=utf-8
If there's no "charset" part (or the Content-Type header is missing altogether), you may need to add it in an On After Response.
Hello Kilian,
Thank you for replying.
I checked the integration logs and couldn't find UTF-8 in response header content. I fixed my API to include UTF-8 in header and now it is working fine.
Thank you very much for your input.
Regards and Thanks.
Aman Singh Rajput.
Great you got it solved! Happy coding :).