Content Object
The content object gets the string content of a request or a response. It includes the following function that gets the text content of a request or response:
get_text(encoding)
where:
encoding is a string that identifies how the body of the request or response is encoded. It can include one of the following strings:
iso-8859-1
utf-8
utf-16
For example:
get_text(iso-8859-1)
It includes the following function that sets the text content of a request or response:
set_text(text,
encoding)
where:
text is the text of the body of the request or response.
encoding is a string that identifies how Siebel CRM Desktop SSO must encode the body of the request or response. It can include one of the following strings:
iso-8859-1
utf-8
utf-16
For example:
set_text("My text string", "iso-8859-1");
You must enclose each string in JavaScript quotes, so the following code returns the body of the request converted from utf-8:
var body = req.get_contents().get_text("utf-8");
CRM Desktop SSO does not allow you to modify the text of the initial request that comes as a parameter of the request_handler function. For more information, see Request Handler Function.
For more information, see Request Object and Response Object.