- May
- 15,047
- 271
Code:
v:\> ai why do i sometimes see — (a-circonflex,euro,close-quote) in your responses?
That is **mojibake**: an em dash (`—`) encoded as UTF‑8 is being incorrectly decoded as Windows‑1252 (or a similar legacy encoding).
- Intended character: `—`
- UTF‑8 bytes: `E2 80 94`
- Misread as Windows‑1252: `â€â€`
This usually happens somewhere in the API/client/display pipeline—not because I intentionally produced those three characters. Ensure responses are decoded as UTF‑8 throughout, avoid double encoding, and use an appropriate header such as:
```http
Content-Type: application/json; charset=utf-8
```