Detection Flow
Quick Start
1
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.
2
Enable Full UTF-8 (Optional)
For full emoji and box-drawing characters, manually enable UTF-8:
How It Works
Configuration Options
The automatic encoding detection requires no configuration. However, you can override behavior: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:Pattern: Training summary on cp1252
praisonai-train agents handles cp1252/ASCII automatically — the summary table swaps emoji for ASCII (PASSED / *) and falls back to plain-text rows if Rich itself can’t encode. See praisonai-train Package → Windows & non-UTF-8 Consoles for the full flow.
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
praisonai-train Package
ASCII-safe training summaries on non-UTF-8 consoles.

