Bug report: hyprnavi crashes on invalid UTF-8 in hyprctl -j clients output (ONLYOFFICE window title)
Summary
Running hyprnavi r fails with an UTF-8 decoding error when a client window title contains non-UTF-8 bytes.
This is reproducible with ONLYOFFICE when opening a file whose name contains ü (e.g. Brücken).
hyprnavi exits with: Error: invalid utf-8 sequence of 1 bytes from index 2770
Expected behavior
hyprnavi should not crash. Ideally it should:
- handle invalid UTF-8 gracefully (lossy decode / replacement chars), or
- skip/ignore the offending field/client and still work for navigation.
Actual behavior
hyprnavi r fails immediately with an invalid UTF-8 error.
Steps to reproduce
- Start Hyprland
- Open ONLYOFFICE
- Open a file with a name containing an umlaut, e.g.
2-1-Brücken.pptx
- Run: