Getting history as UTF-8

thomas_braun
Posts: 586
Joined: 2009-10-07
Location: Germany

Hi igorians,

I want to store the history of Igor experiments into HDF5 files. I've found CaptureHistoryStart() and CaptureHistory() which are much more convenient to use than the HistoryCarbonCopy feature.

I want to store the history text always encoded in UTF-8. I've read DisplayHelpTopic "History Text Encoding" and it looks like I don't really know the encoding of the history, as Igor tries to automatically handle the encoding.

How can I achieve that?

Thanks,
Thomas


Posts: 1675
Joined: 2007-06-21
Location: United States

The history text encoding refers to how the history text is saved to disk. It is always stored as UTF-8 in memory. CaptureHistory always returns UTF-8.


thomas_braun
Posts: 586
Joined: 2009-10-07
Location: Germany

Thanks Howard, that is the best possible answer.


Posts: 1948
Joined: 2007-06-29
Location: United States

Be aware of the limitations of CaptureHistory. In particular, if you invoke a function or operation on the command line, and the function or operation prints to the history, the function or operation invocation may appear in the wrong order in the captured text.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com


thomas_braun
Posts: 586
Joined: 2009-10-07
Location: Germany

@John: Thanks for mentioning that. This should not be a problem.


Back to top