Skip to content

Fix UnicodeEncodeError in doctor command on Windows#31

Open
vivekshekharrai-del wants to merge 1 commit intoPickle-Pixel:mainfrom
vivekshekharrai-del:fix/windows-unicode-doctor
Open

Fix UnicodeEncodeError in doctor command on Windows#31
vivekshekharrai-del wants to merge 1 commit intoPickle-Pixel:mainfrom
vivekshekharrai-del:fix/windows-unicode-doctor

Conversation

@vivekshekharrai-del
Copy link

Summary

  • Replace non-ASCII characters ( U+2014, U+2192) with ASCII equivalents (-, ->) in console.print() calls inside the doctor command
  • On Windows with CP1252 console encoding, these characters cause a crash: UnicodeEncodeError: 'charmap' codec can't encode character '\u2192'
  • The applypilot doctor command exits with a traceback instead of completing

Affected lines

  • resume.txt WARN note (em dash)
  • searches.yaml WARN note (em dash)
  • Tier summary header (em dash)
  • Tier 2/3 unlock hint messages (right arrow x3)

Test plan

  • Run applypilot doctor on Windows — should complete without UnicodeEncodeError
  • Run applypilot doctor on Linux/Mac — output unchanged, no regression

🤖 Generated with Claude Code

Replace non-ASCII characters (em dash U+2014, right arrow U+2192) with
ASCII equivalents in console.print() calls inside the doctor command.

On Windows with CP1252 console encoding, these characters raise:
  UnicodeEncodeError: 'charmap' codec can't encode character '\u2192'

Affected lines: resume.txt WARN note, searches.yaml WARN note,
tier summary header, and Tier 2/3 unlock hint messages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant