Zapier · Gmail (trigger)
Gmail: DjangoUnicodeDecodeError or LookupError unknown encoding
These Gmail errors mean the email contains unsupported or non-standard characters that Gmail's IMAP support handles poorly; large attachments can also cause them. Switch to the Inbound Email or IMAP trigger, or send Zapier support the original email text.
VerifiedLast verified
01Error text
DjangoUnicodeDecodeError
LookupError unknown encoding02Likely causes
- Gmail/IMAP has poor support for some Unicode characters.
- Large attachments can also cause it.
03How to fix it
- Use the Inbound Email trigger with Gmail auto-forwarding, or the IMAP trigger, instead.
- If that isn't possible, send Zapier support the original email text.
04Fix it with AI
Copy this prompt into Claude Code, ChatGPT or any AI assistant. It already holds the error, the likely causes and the fix steps, so the assistant starts from what is known instead of guessing.
I'm getting this error in Zapier (Gmail (trigger)):
DjangoUnicodeDecodeError
LookupError unknown encoding
What it usually means: These Gmail errors mean the email contains unsupported or non-standard characters that Gmail's IMAP support handles poorly; large attachments can also cause them. Switch to the Inbound Email or IMAP trigger, or send Zapier support the original email text.
Likely causes:
- Gmail/IMAP has poor support for some Unicode characters.
- Large attachments can also cause it.
Fix steps that usually work:
1. Use the Inbound Email trigger with Gmail auto-forwarding, or the IMAP trigger, instead.
2. If that isn't possible, send Zapier support the original email text.
Help me fix it. If you can read my project files, find where this error comes from. If not, ask me for what you need (the failing step, its input, the connection or config). Check the likely causes one by one, tell me which one it is and why, then give me the exact change to make. Do not change anything in production. Reference: https://ipaaserrors.com/zapier/gmail-djangounicodedecodeerror-unknown-encodingNothing is sent anywhere from this page. Read what the assistant suggests before you apply it.
05Official documentation
→Related errors
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for Zapier work:Open Zapier jobsZapier pay estimates