FlightStream Scripting Spreadsheet Export Yields Wrong Binary Format

coopertomcook
coopertomcook New Altair Community Member

While writing some scripts for automating analysis, I have discovered that when I use the command:
"""EXPORT_SOLVER_ANALYSIS_SPREADSHEET

(path)"""

The resulting text file data is saved in UTF-8, but the file is encoded as UTF-16. This results in garbage data when opened by a standard text editor.

I can get around this by forcing reading in UTF-8, but this also results in a couple garbage characters.

This problem does not exist when I manually export the spreadsheet through the GUI. Is there another command I can enter to get the proper file format?

Answers

  • CoryG
    CoryG
    Altair Employee

    The NUL characters in the output are commonly seen. I wouldn't worry about those.

    The encoding does seem odd though. Are you running the script through the GUI or the terminal?