Space banner This version of the product is in limited support. However, the documentation is available for your convenience. You will not be able to leave comments.

Handling special characters


Due to lack of support for certain special characters in XML, TrueSight Network Automation encodes them before passing the strings to the webservice client. Encoding replaces a special character with an escaped hexadecimal string (for example, \x00). This encoding is done by using the StringUtils.translateUnprintables() method.

When the client receives the data, a call must be made to SharedStringUtils.convertToCharacter() to translate the encoded strings back to their original characters.

When the client sends data containing special characters to the server, a call must be made to the StringUtils.translateUnprintables() method to encode the special characters before a call is made to the web service API.

Note

While parsing the web services response, use wildcards in the script because namespaces might change from release-to-release.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*