Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

AI response decoding?

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
```
 
I like it — an explanation of mojibake, which unintentionally contains further examples of mojibake. Self-referential mojibake.
 
Back
Top