Skip to content

Windows: Unicode characters in agent output are garbled (charmap encoding) #89

Description

@taipoweredpm

Bug

On Windows, when agents produce output containing emoji or non-ASCII characters
(—, ✅, ⚠️, 🔍, 🟡, etc.), the characters are mangled when passed to downstream
agents or when posted via tools (e.g., gh api).

Example: becomes Γ£à, becomes ΓÇö, 🟡 becomes ≡ƒƒí

Reproduction

  1. Create a workflow where agent A produces emoji in its output
  2. Agent B receives agent A's output and posts it via gh pr comment
  3. The posted comment contains garbled characters

Environment

  • Windows 11, PowerShell 7
  • Conductor v0.1.1
  • Provider: copilot
  • $env:PYTHONIOENCODING = "utf-8" is set but doesn't fix inter-agent output passing

Root Cause (suspected)

The agent output capture pipeline uses Python's default console encoding
(charmap/cp1252 on Windows) instead of UTF-8 when collecting agent responses
and passing them through the workflow context. The PYTHONIOENCODING=utf-8 env var
fixes Python's own stdout but doesn't affect how the Copilot SDK or subprocess
pipes handle encoding internally.

Expected Behavior

Agent outputs should preserve Unicode characters end-to-end on all platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:executorAgent and script execution, templates, outputbugSomething isn't workingplatform:windowsWindows-specific behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions