UTF-16 Encoded Payload

Hey everyone.

I wish to encode a json payload with utf-16 and send it as utf-16 in a http request block. I have tried some stuff but it doesn’t seem to let u send a utf-16 payload in a http request.

The payload in question: {"rdk1":"<rdk1>"}
I would appreciate any help, thanks.

Use a raw request body (that accepts a byte array) and convert your string like this var bytes = System.Text.Encoding.Unicode.GetBytes(yourString);. Then pass the @bytes variable as the request body.

1 Like

thank you honeybun :star_struck: