Forum Discussion

icaroerasmo's avatar
icaroerasmo
New Contributor
6 years ago

How does Soap UI detects some String charset?

I'm developing an application that makes some SOAP requests. One service response was being received broken because a charset issue. Although charset header was UTF-8, the XML was encoded in Windows-1252. In SOAP UI it's handled gracefully because it knows how to parse raw strings to default system's encode. I struggled hard to find out how SOAP UI detects and manages to convert a string from some charset to system's default one but I couldn't. Does someone know how it happens?

  • avidCoder's avatar
    avidCoder
    Super Contributor

    You can set soapui default encoding to UTF-8 by going to this path:-

    SOAPUI_HOME/bin/soapui.vmoptions
    -Dfile.encoding=UTF-8

    And again when you restart soapui. Go to help->system properties->You can see file.encoding value would be UTF-8.

    Is this what you are looking for?

    • icaroerasmo's avatar
      icaroerasmo
      New Contributor

      No. It isn't. The point is that somehow SoapUI detects charset of texts without knowing its right charset. I just wanna know how it does it!