Skip to content

Rephrase ASCII requirement in system prompt: Generated content, not file encoding. #13552

Closed as not planned

Description

@cmeeren

What variant of Codex are you using?

CLI

What feature would you like to see?

The system prompts in this repo instructs to prefer ASCII. My interpretation is that this is about what the agent produces, not about the file encoding. On Windows (not WSL), it seems to have the effect that files are read/written with ASCII/default encoding, causing garbled text (mojibake) if a file is already UTF-8 and contains non-ASCII characters (such as æøå).

The prompt should be updated to clarify that the ASCII preference is for generated content, and that all files should be read/written as UTF-8 unless otherwise specified, or something. (UTF-8 is, after all, compatible with ASCII for ASCII-only content.)

Additional information

No response

Activity

  1. added
    documentationImprovements or additions to documentation
    CLIIssues related to the Codex CLI
    windows-osIssues related to Codex on Windows systems
    on Mar 5, 2026
  2. github-actions commented on Mar 5, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. cmeeren commented on Mar 5, 2026

    @cmeeren
    Author

    It's similar, but I don't think it's a duplicate.

  4. etraut-openai commented on Mar 5, 2026

    @etraut-openai
    Contributor

    The system prompt indicates what the model should do, not the encoding on disk. The latter is the concern of the harness and tools that are called.

    If you see examples of incorrect encoding, please use the /feedback slash command to upload your session details and file a bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIdocumentationImprovements or additions to documentationenhancementNew feature or requestwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions