# Access Module Encoding

> Access Module Encoding is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Check encoding consistency and mojibake risks for Access/VBA exported modules (.bas/.cls) and related files, and fix common mojibake. Use when asked to review codificacion/encoding issues, to verify UTF-8 vs ANSI, to fix mojibake, or to detect BOM/UTF-16 problems before importing into Access.

- Skill name: `access-module-encoding`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/devops/access-module-encoding-ardelperal-skills-2934234b/SKILL.md
- Repository: majiayu000/claude-skill-registry (498 GitHub stars when collected)

## SKILL.md

# Access Module Encoding

## Quick use

Check encodings:
```bash
python scripts/check_access_module_encoding.py --root C:\Proyectos\gestion-proyectos --extensions .bas .cls
python scripts/check_access_module_encoding.py path\to\File.bas path\to\File.cls
python scripts/check_access_module_encoding.py --strict
```

Fix mojibake (dry-run by default):
```bash
python scripts/fix_access_mojibake.py --root C:\Proyectos\gestion-proyectos --extensions .bas .cls
python scripts/fix_access_mojibake.py path\to\File.bas --apply --backup
```

Fix mojibake with built-in Spanish defaults:
```bash
python scripts/fix_access_mojibake.py --root C:\Proyectos\gestion-proyectos --extensions .bas .cls --spanish-defaults --apply --backup
```

Fix mojibake with explicit replacements for \ufffd (lossy):
```bash
python scripts/fix_access_mojibake.py --root C:\Proyectos\gestion-proyectos --extensions .bas .cls --map path\to\mojibake_map.json --fix-map --apply --backup
```

Normalize to UTF-8 no BOM:
```bash
python scripts/normalize_access_module_encoding.py --root C:\Proyectos\gestion-proyectos --extensions .bas .cls
python scripts/normalize_access_module_encoding.py path\to\File.bas --dry-run
python scripts/normalize_access_module_encoding.py --root C:\Proyectos\gestion-proyectos --extensions .bas .cls --backup
```

## Interpret results

- ascii-only: safe everywhere.
- utf8: UTF-8 without BOM.
- utf8-bom: UTF-8 with BOM (risky for Access import).
- ansi-cp1252: typical Access export.
- utf16-le/utf16-be/binary: treat as problems.

## Normalize notes

- Writes in place; use --dry-run to preview or --backup to keep .bak copies.
- Use --strict to return exit code 1 if a file cannot be converted.

## Mojibake notes

- The utf8-in-cp1252 repair is reversible and safe when sequences like \u00c3 or \u00c2 appear.
- Use --spanish-defaults for common Spanish words and EnumSiNo.S\u00ed patterns.
- The replacement character \ufffd is lossy; use --map with explicit replacements if you want to fix it.

---

Source: https://www.openparable.com/skill/testing-quality/access-module-encoding (OpenParable). Cite the canonical URL above.
