Skip to content

Codex use UTF-8 BOM by default and change Chinese to unreadable nonsenese #15967

Closed as duplicate

Description

@UIZorrot

What version of the Codex App are you using (From “About Codex” dialog)?

latest

What subscription do you have?

plus

What platform is your computer?

windows, wsl

What issue are you seeing?

just let codex or gpt know, please use UTF-8 with no BOM by default.

What steps can reproduce the bug?

let codex do some chinese work and you will see. May other utf-8 language have this issue.

What is the expected behavior?

just let codex or gpt know, please use UTF-8 with no BOM by default. And when using command like get-content, should use utf-8 for non-english language.

Additional information

Image

like this

Activity

  1. added
    appIssues related to the Codex desktop app
    on Mar 27, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    on Mar 27, 2026
  3. added a commit that references this issue on Apr 14, 2026
    a8eaccf
  4. mbetrifork commented on Apr 14, 2026

    @mbetrifork

    I prepared a fix for this on my fork, but this repository is currently configured to block PRs from non-collaborators

    Branch:
    https://github.com/mbetrifork/codex-fixes/tree/issue-15967

    Commit:
    a8eaccf Fix #15967: default PowerShell commands to UTF-8

    Summary:

    • defaults PowerShell cmdlet encoding to UTF-8
    • fixes the Get-Content/UTF-8-no-BOM read path that can garble Chinese and other non-ASCII text on Windows PowerShell
    • adds regression tests

    I can make a patch file if that's the only way to contribute the fix.

  5. lightcomc commented on May 16, 2026

    @lightcomc

    bad that utf-8 md files is mojibaked EVERY time in codex Powershell calls. Fix wanted

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

    appIssues related to the Codex desktop appbugSomething isn't workingwindows-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