By default when running focus like:
focus foc.inp 100 > foc.out
the foc.out file will have encoding UTF-16, whereas fo2hist and all the other tools expects UTF-8. Python will assume UTF-8 (it is difficult to detect the encoding automatically), so that the text in the file will look scrambled, and no frameworks can be extracted.
It is easy to convert the file though in notepad.exe (or your favourite text editor). Open the output file (foc.out) in notepad, go to File > Save As… and select the encoding UTF-8.
An easier solution is to simply run focus in the Windows command prompt (cmd), which does not have this issue.

By default when running focus like:
the
foc.outfile will have encoding UTF-16, whereasfo2histand all the other tools expects UTF-8. Python will assume UTF-8 (it is difficult to detect the encoding automatically), so that the text in the file will look scrambled, and no frameworks can be extracted.It is easy to convert the file though in
notepad.exe(or your favourite text editor). Open the output file (foc.out) in notepad, go to File > Save As… and select the encoding UTF-8.An easier solution is to simply run
focusin the Windows command prompt (cmd), which does not have this issue.