28
Views
3
Comments
Solved
Hindi letter not recognized in outsystems.

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.  

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

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.

UserImage.jpg
Aman Singh Rajput

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.


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Aman,

Great you got it solved! Happy coding :).

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.