External Publication
Visit Post

Codex fails to start on Windows when the username contains special characters

OpenAI Developer Community March 26, 2026
Source

Error

EPERM: operation not permitted, mkdir ‘C:\Users\C�sar\.codex\sqlite’

Environment

  • Windows 11
  • Username: contains special character (e.g. “César”)

Details

The path is incorrectly encoded (C�sar instead of César), which causes failure when trying to create directories.

Expected Behavior

The application should correctly handle Unicode paths on Windows.

Actual Behavior

Codex fails to initialize due to encoding issues in the filesystem path.

Notes

This seems to be a UTF-8 encoding issue when handling Windows user directories.

Discussion in the ATmosphere

Loading comments...