Forum Discussion

Jim's avatar
Jim
Occasional Contributor
17 years ago

Passing a unicode character in a Soap Request

I have a request that I would like to pass a unicode character as part of the string. Is this possible to do using SoapUi?

Here is my element.

cid:320147697557

I want to pass in something similar to this C# statement:

String search = "This string contains the unicode character Pi(\u03a0)"

Where the Pi create a unicode character in the string.

Thanks.

3 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Jim,

    have you tried to just enter/paste the unicode character into one of the editors? As far as I know, this should work ok.. messages are by default UTF-8 encoded (you can change to another encoding in the bottom left properties table for your request..)

    Hope this helps!

    regards,

    /Ole
    eviware.com
  • Jim's avatar
    Jim
    Occasional Contributor
    I created a text file and added the following:

    This string contains the unicode character &#xu03a0


    for the contents of the file. Then I mad an attachment to the CID:##### tag. I read that the &#xXXXX syntax is what to use in XML. I still have to verify it works.  I think your suggestion will work as well.

    thanks
  • omatzura's avatar
    omatzura
    Super Contributor
    ok.. let me know how it goes so we can fix this if necessary!

    regards,

    /Ole
    eviware.com