mjsonrpc server has 3 general cases:
- non-utf8 strings returned from ODB - bug 215, almost resolved
- internally generated data (i.e. “get alarms”, etc) - need to audit this code, but think it is all good.
- data read from files (midas.log, etc) - biggest problem. not clear how to sanitize non-utf8 (or even non-text) data for safe decoding and display in browser.
It would be good to have this sorted out for the midas-2020-07 release.