https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105959
--- Comment #8 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Note that section 3.1 ("File Format" > "General") specifies: "A SARIF log file SHALL be encoded in UTF-8 [RFC3629]." https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html Though I suppose it would be possible to escape non-ASCII chars so that the .sarif file could use the ASCII subset of UTF-8, if there's no other way around this from the DejaGnu side.