codex - 💡(How to fix) Fix Gmail connector mis-encodes non-ASCII sender display name in From header

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When sending an email through the Codex Desktop Gmail connector, a sender display name containing non-ASCII characters can be mis-encoded in the From header.

Example expected sender display name:

Example É User <[email protected]>

Example actual sender display name observed in Gmail sent mail:

"Example É User" <[email protected]>

The email body handles UTF-8 correctly. For example, the body can contain:

Example É User

But the sender display name in the message metadata/header is corrupted.

Error Message

The From display name appears to be UTF-8 text interpreted as Latin-1/Windows-1252.

Root Cause

When sending an email through the Codex Desktop Gmail connector, a sender display name containing non-ASCII characters can be mis-encoded in the From header.

Example expected sender display name:

Example É User <[email protected]>

Example actual sender display name observed in Gmail sent mail:

"Example É User" <[email protected]>

The email body handles UTF-8 correctly. For example, the body can contain:

Example É User

But the sender display name in the message metadata/header is corrupted.

Code Example

Example É User <user@example.com>

---

"Example É User" <user@example.com>

---

Example É User

---

from_: "\"Example É User\" [email protected]"
body: "Test message\n\nExample É User"
RAW_BUFFERClick to expand / collapse

Summary

When sending an email through the Codex Desktop Gmail connector, a sender display name containing non-ASCII characters can be mis-encoded in the From header.

Example expected sender display name:

Example É User <[email protected]>

Example actual sender display name observed in Gmail sent mail:

"Example É User" <[email protected]>

The email body handles UTF-8 correctly. For example, the body can contain:

Example É User

But the sender display name in the message metadata/header is corrupted.

Steps to reproduce

  1. Configure a Gmail sender display name with a non-ASCII character, such as Example É User.
  2. In Codex Desktop, use the Gmail connector to send an email.
  3. Open the sent message in Gmail or read it back through the Gmail connector.
  4. The From display name appears mojibaked, for example Example É User, instead of preserving the original UTF-8 text.

Observed behavior

The From display name appears to be UTF-8 text interpreted as Latin-1/Windows-1252.

Example connector readback after sending:

from_: "\"Example É User\" [email protected]"
body: "Test message\n\nExample É User"

Expected behavior

The Gmail connector should preserve UTF-8 characters in the sender display name, so the sent message should show the configured non-ASCII display name correctly.

Notes

This was reproduced using Codex Desktop with the Gmail connector. The body content preserved the non-ASCII text correctly; only the sender display name/header path was affected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The Gmail connector should preserve UTF-8 characters in the sender display name, so the sent message should show the configured non-ASCII display name correctly.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Gmail connector mis-encodes non-ASCII sender display name in From header