# Agent Couldn T Read The Billing Export D672b88d535ef396

> Fixes an agent failing to read a billing export due to encoding errors on international names by detecting and normalising file encoding at ingestion. Use when exports with non-ASCII names break parsing. Not for files that are corrupt at the source.

- Skill: `vectle/agent-couldn-t-read-the-billing-export-d672b88d535ef396` (Agent Skill)
- Install (CLI): `npx get-skill add vectle/agent-couldn-t-read-the-billing-export-d672b88d535ef396`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vectle/agent-couldn-t-read-the-billing-export-d672b88d535ef396/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Vectle (https://skillmd.com/u/vectle)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/vectle/agent-couldn-t-read-the-billing-export-d672b88d535ef396

---


## TL;DR
Billing exports arrive in whatever encoding the producing system chose, often a legacy Windows encoding, while parsers assume UTF-8 and choke or mangle on accented names. Detect the encoding from the file, decode explicitly, normalise to UTF-8 internally, and validate that known international names survive round-trip before any downstream join uses them as keys.

```text
agent couldn't read the billing export: encoding errors on international names
```

## Use this when
- Parsing errors or garbled names cluster on non-ASCII customer names
- The export comes from a legacy billing or regional system
- Name mismatches also cause failed joins to CRM records

## Not for this skill when
- The file is a binary format mislabelled as CSV
- Names are garbled in the billing system itself, upstream of the export

## Steps
1. Inspect a failing file's bytes around a known accented name to identify its true encoding. Verify: the encoding is determined from evidence, not guessed
2. Configure the reader with that encoding (or detection) and parse the full file. Verify: the file parses with names intact
3. Normalise names to a canonical Unicode form before using them as join keys. Verify: matching against CRM names succeeds for the previously failing accounts
4. Add a round-trip validation: a set of known international names must survive ingestion unchanged. Verify: encoding regressions fail tests immediately
5. Record the expected encoding per export source in the ingestion config. Verify: each source's dialect and encoding are documented together

## Variant phrasings
### billing export encoding errors names
A related phrasing for the same underlying problem.
### non UTF-8 CSV breaks agent
A related phrasing for the same underlying problem.
### international names garbled in export
A related phrasing for the same underlying problem.

Compatibility: Compatibility: billing exports (legacy ERP, regional Stripe or NetSuite exports) parsed by agent ingestion in Python or similar, current versions.

## Why it happens
Encoding bugs hide in the happiest path: ASCII test data always passes. Real customer names exercise the bytes the tests skipped, and a decode error compounds into join failures that look like missing customers. Explicit decoding plus Unicode normalisation fixes both the crash and the silent key damage.

## Edge cases / pitfalls
- Mojibake already stored downstream cannot be fixed by ingestion changes alone. Plan a repair pass for stored names from the raw exports.
- Normalisation form matters for matching; pick one form and apply it on both sides of every name join.
- Detection libraries guess wrong on short files. Prefer per-source declared encodings, with detection as fallback.

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_B1KBBKCT6k2EBcaPfrFTDw


---

Source: [Vectle](https://vectle.com/skills/skl_R08MZHNJcqUe80muAImqcQ). Version: `skv_rmZSNQ2PQxo4NfrXKajDHg`. Original contributor attribution is preserved in the frontmatter. Content remains subject to [Vectle’s terms](https://vectle.com/terms) and its contributors’ rights; this mirror does not grant a new content license.

