github OthmanAdi/planning-with-files v2.16.1
v2.16.1 - Copilot Garbled Characters Fix

latest releases: v3.1.3, v3.1.2, v3.1.1...
4 months ago

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]::UTF8

Linux / 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

  • @Hexiaopi for reporting the issue with a clear screenshot (Issue #82)

Full Changelog

https://github.com/OthmanAdi/planning-with-files/blob/master/CHANGELOG.md

Don't miss a new planning-with-files release

NewReleases is sending notifications on new releases.