Quick Start
Automatic Handling
PraisonAI ≥ v0.0.x automatically detects legacy Windows code pages and renders ASCII-safe output:No configuration needed - the CLI will work without crashes.
How It Works
| Component | Behavior | Fallback |
|---|---|---|
| Rich Console | Detects legacy code page | Uses ASCII boxes, no emoji |
| PYTHONIOENCODING | Set to utf-8 for subprocess safety | Prevents child process crashes |
| Error Handling | Catches UnicodeEncodeError | Shows remediation hint |
Configuration Options
The automatic encoding detection requires no configuration. However, you can override behavior:| Method | Scope | When to Use |
|---|---|---|
PYTHONIOENCODING=utf-8 | Current session | Temporary fix for full Unicode |
chcp 65001 | Current session | Enable UTF-8 code page |
| System Environment Variables | Permanent | Set PYTHONIOENCODING globally |
| Windows Terminal | Best experience | Use modern terminal instead of CMD |
Common Patterns
Problem: UnicodeEncodeError in Older Versions
Symptom:Pattern: Permanent UTF-8 Setup
For PowerShell users:Pattern: Windows Terminal Integration
Use Windows Terminal instead of legacy CMD:Best Practices
Use Windows Terminal for Best Experience
Use Windows Terminal for Best Experience
Windows Terminal provides full UTF-8 support and modern terminal features. Download from the Microsoft Store or install via
winget install Microsoft.WindowsTerminal.Set Environment Variables Permanently
Set Environment Variables Permanently
Instead of setting
PYTHONIOENCODING in each session, add it to your system environment variables through System Properties → Environment Variables.Consider WSL for Unix-like Experience
Consider WSL for Unix-like Experience
Windows Subsystem for Linux (WSL) provides a full Unix terminal experience without encoding issues. Install with
wsl --install.Upgrade to Latest PraisonAI Version
Upgrade to Latest PraisonAI Version
The automatic encoding detection was added in recent versions. Ensure you’re running the latest version with
pip install --upgrade praisonai.Related
CLI Reference
Complete CLI command reference
Installation Guide
Getting started with PraisonAI

