Search code examples
file-iogroovyutf-8soapuiassertions

Unable to print or Log non english strings e.g arabic,chinese characters using Groovy in SOAP UI


Following is my code and i want to assert this text from responses .I am reading file content which consist of Arabic and chinese strings

Format of Text file is

10911= الأصول مع تعريب
10912= الأصمع تعريب

Groovy code as follows

Properties properties = new Properties()
def file = new File(''C\properties.txt'))
InputStream is = new ByteArrayInputStream(file.getBytes());
properties.load(is)
log.info  properties."10911".toString()

Getting Response as

اÙ?أصÙ?Ù? Ù?ع تعرÙ?ب

How to log it in arabic or chiinese in soapui


Solution

  • Go to file/Preferences in soapUI

    in HTTP Settings Response compression must be unchecked.