'Why Rest API response is giving question mark "?????" for the Arabic language in Azure Build Report
In Rest Assured Automation, Expectation is to validate Arabic text in Response. In local system, While hitting the API getting the Response in Arabic format. But the same script is not running in the Azure Pipeline because getting the API response in the symbol like this "??????" format
Solution 1:[1]
Need to add the required language in Language Analyzer. To do the same follow : https://docs.microsoft.com/en-us/azure/search/index-add-language-analyzers
To detect the language of the file : https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py
To detect the language use the below link to reproduce the work: https://docs.microsoft.com/en-us/azure/cognitive-services/Translator/quickstart-translator?tabs=python#detect-language
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | SairamTadepalli-MT |