PowerShell shows and writes Turkish characters incorrectly (encoding issue)

Resolved 💬 5 comments Opened Sep 24, 2025 by bymechul Closed Nov 23, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

Description
While running the repo’s PowerShell commands, Turkish characters (ç, ğ, ı, İ, ö, ş, ü) are not displayed correctly in the console and sometimes are written/read incorrectly when using Get-Content / Set-Content. This makes Turkish output unreadable and corrupts files created by the scripts.

Steps to Reproduce

Open Windows PowerShell (or Terminal → PowerShell).

Create a UTF-8 file with Turkish text, e.g. response.md containing:
Bu proje, gelen response'un geldiğini nasıl anlıyor ve response'u nasıl alıyor?

Run a command that reads the file, e.g.:
powershell.exe -Command "Get-Content '.\response.md'"

Observe the console output and any files created by the scripts.

Expected Result
All Turkish characters render correctly in the console and are preserved when reading/writing files.

Actual Result
Some characters appear as mojibake (� or wrong symbols), and occasionally the scripts write out corrupted text (see screenshots).

Screenshots
<img width="664" height="252" alt="Image" src="https://github.com/user-attachments/assets/4bad5adf-3d56-454c-b3d6-5d7363aa4293" />

View original on GitHub ↗

5 Comments

bymechul · 10 months ago

Won't this issue be fixed? I can't use Codex in the projects I use in Turkish.

gorkemye · 10 months ago

Same issue happening, it makes codex totally unusable for Turkish users. @bymechul

bymechul · 10 months ago
Same issue happening, it makes codex totally unusable for Turkish users. @bymechul

I completely agree. It's very annoying that they haven't solved such a critical and easily solvable problem.

bymechul · 10 months ago

@ChenyangLi4288 Can you open a new PR?

etraut-openai contributor · 9 months ago

This has been fixes in recent versions of codex.