Skip to content
Back to skills

Encoding Fix

ASecurity

Mojibake-Reparatur für doppelt/dreifach kodiertes UTF-8. Behebt Windows-cp1252/Latin-1-Fehlinterpretationen. Ohne Abhängigkeiten.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 4, 2026
ai-agentspythongobashgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add ellmos-ai/skills --skill encoding-fix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Encoding Fix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Encoding Fix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ellmos-ai-encoding-fix/badge)](https://www.skillsdirectory.com/skills/ellmos-ai-encoding-fix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: encoding-fix
version: 1.0.0
type: tool
author: Lukas Geiger
created: 2026-03-12
updated: 2026-03-12
description: >
  Mojibake-Reparatur für doppelt/dreifach kodiertes UTF-8. Behebt Windows-cp1252/Latin-1-Fehlinterpretationen. Ohne Abhängigkeiten.

standalone: true
anthropic_compatible: true
bach_compatible: true
bach_origin: true
category: utilities
tags: [encoding, utf-8, mojibake, windows, cp1252, text-repair]
language: de
status: active
visibility: public
dependencies:
  tools: []
  services: []
  protocols: []
  python: []
provenance:
  origin: "bach"
  origin_path: "system/tools/encoding_fix.py"
  origin_version: "1.0.0"
  origin_repo: "github.com/ellmos-ai/bach"
  last_sync_from_origin: "2026-03-12"
  last_sync_to_origin: null
  local_changes_since_sync: false
---
<img src="banner.png" width="100%" alt="encoding-fix banner">

# Encoding Fix

Repariert Mojibake (doppelt/dreifach kodiertes UTF-8) das durch Windows cp1252/Latin-1
Fehlinterpretation entsteht. Zero Dependencies — nur Python stdlib.

## Typisches Problem

```
"ue" (U+00FC) → UTF-8 \xc3\xbc → als cp1252 gelesen → "ü"
```

## Nutzung

### Als Library
```python
from encoding_fix import sanitize_outbound

clean = sanitize_outbound("Würge")  # → "Würge"
```

### Subprocess-Output
```python
from encoding_fix import sanitize_subprocess_output

text = sanitize_subprocess_output(process.stdout)
```

### CLI
```bash
python encoding_fix.py "Würge"    # Einzelnen String prüfen
python encoding_fix.py              # Selbst-Test
```

## Features

- **Idempotent:** Korrekt kodierter Text wird nicht veraendert
- **Bis zu 3 Runden:** Repariert auch dreifach-kodierte Strings
- **Subprocess-Dekoder:** UTF-8/cp1252 Fallback fuer Prozess-Output
- **Zero Dependencies:** Nur Python stdlib

## Changelog

### 1.0.0 (2026-03-12)
- Portiert aus BACH system/tools/encoding_fix.py

Files in this skill

  • SKILL.en.md1.9 KB
  • SKILL.es.md2 KB
  • SKILL.fr.md2 KB
  • SKILL.ja.md2.1 KB
  • SKILL.md1.8 KB
  • SKILL.ru.md2.6 KB
  • SKILL.zh.md1.9 KB
  • en/SKILL.md1.8 KB
  • encoding_fix.py4.2 KB
  • es/SKILL.md2 KB
  • ja/SKILL.md2.1 KB
  • ru/SKILL.md2.5 KB
  • zh/SKILL.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.