Purchase your Section 508 Compliance Support guide now!

Purchase your Section 508 Compliance Support guide now!

Cognos SDK -- Report Output in CSV Format Contains an Extra Character

When you run a report that has the run option that specifies output encapsulation set to none, and the output format set to CSV, the output you retrieve contains an extra character. The output is in standard Unicode UTF-16 Little Endian character format. The extra character in the output is the UTF-16 Byte Order Mark (FF FE). You must write code to remove the extra character if your programming language does not automatically remove the UTF-16 Byte Order Mark.

 

For more information, you should review the run (objectPath, parameterValues, options) method and the runSpecification (specification, parameterValues, options) method.