85
Views
3
Comments
Solved
Arabic language which is coming from REST API is not displaying properly

One of the REST API value is Arabic language. when i run the swagger, it is displaying properly. but when i trying to display in Outsystem UI, it is not coming properly. like it is not readable format (على حسن محمد على الصيقل ).


Can anybody please help me on this to resolve?


Note: i was tried to overwrite the Charset as utf-8. that is also not helped to sort out.

Thanks in Advance. 

 

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

Hi Valantina,

This is indeed likely caused by the Charset not being explicitly set, in which case OutSystems unfortunately does not assume utf-8 as default. Setting the Charset in the OnBeforeRequest doesn't work, as the Platform has already interpreted the data as something else than utf-8.

To fix this, the solution in this very old post by João Rosado still works. You need to reconvert the binary to text using "utf-8", then assign that to the ResponseText.

2024-05-18 12-36-00
Valantina K

@Kilian Hekhuis Thank you for prompt help. It is working fine now.

I was seen that post before. But I thought it is only for binary data (I am looking for text value - name attribute only. Not whole response text).

Thank you so much :)

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

You're most welcome, glad I could be of help!

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