What's Fixed
Copilot Hooks — Garbled Characters (Issue #82)
Two root causes, both fixed:
Windows / PowerShell:
All four .ps1 hook scripts now set UTF-8 output encoding before producing any output. PowerShell 5.x defaults to UTF-16LE on stdout — Copilot reads it as UTF-8, producing diamond replacement characters (◆). Fixed.
$OutputEncoding = [System.Text.Encoding]::UTF8
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8Linux / macOS / Bash:
session-start.sh and pre-tool-use.sh now use json.dumps(..., ensure_ascii=False). The previous default converted every non-ASCII character in task_plan.md (CJK, emojis, accented letters) into raw \uXXXX escape sequences instead of passing them through as UTF-8.
Contributors
Full Changelog
https://github.com/OthmanAdi/planning-with-files/blob/master/CHANGELOG.md