Control character in XML output

Error constant SQLE_CONTROL_CHARACTER_IN_XML_OUTPUT
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –911
SQLSTATE WX015
Sybase error code 13573
Probable cause

A non-space character less than hex 20 was encountered while generating XML content. Consider base64 encoding strings that contain control characters before using them as XML content. This can be accomplished in a FOR XML query or SQLX function by casting the string to a type such as LONG BINARY.