AI article

Python json.dumps ensure_ascii: 24% More Claude Tokens, Wrong Kanji

Community description: json.dumps ensure_ascii=True turned my Claude prompts into unicode escapes: 24% more input tokens and 29 garbled Japanese names.

Dev.to | Oct 12, 2026 | jidonglab

Automated excerpt

Japanese ticket payloads alone grew about 3. 1x. Anywhere you serialize data into prompt text. So does json. dumps ensure_ascii waste LLM tokens?

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

Read next

Anthropic coverage

AI briefing: recent picks

More stories to explore