Skip to main content
PraisonAI automatically handles Windows legacy code pages to prevent CLI crashes and ensure ASCII-safe output.
The user sends Unicode text; PraisonAI renders safely without crashing legacy Windows consoles.

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:
Solution:

Pattern: Permanent UTF-8 Setup

For PowerShell users:
For CMD 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

Windows Terminal provides full UTF-8 support and modern terminal features. Download from the Microsoft Store or install via winget install Microsoft.WindowsTerminal.
Instead of setting PYTHONIOENCODING in each session, add it to your system environment variables through System Properties → Environment Variables.
Windows Subsystem for Linux (WSL) provides a full Unix terminal experience without encoding issues. Install with wsl --install.
The automatic encoding detection was added in recent versions. Ensure you’re running the latest version with pip install --upgrade praisonai.

CLI Reference

Complete CLI command reference

Installation Guide

Getting started with PraisonAI

praisonai-train Package

ASCII-safe training summaries on non-UTF-8 consoles.