本文へ移動
cccskills
無料GitHub で公開

encoding-fix

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

インストール方法を見る

含まれるファイル(14)

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

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

<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

from encoding_fix import sanitize_outbound

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

Subprocess-Output

from encoding_fix import sanitize_subprocess_output

text = sanitize_subprocess_output(process.stdout)

CLI

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Akademisches Studien- und Fristenmanagement mit Quellenprüfung, Datenschutz und realistischer Handlungsplanung.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills72026年10月12日 更新

Aktives Lernen, Erarbeitung von Fachinhalten und strukturierte Erstellung von Synthesen.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills72026年10月12日 更新

Prüfungsvorbereitung, Selbsttests, Probeklausuren und systematische Fehleranalyse.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills72026年10月12日 更新

Terapia de Aceptación y Compromiso (ACT) según Steven Hayes: modelo Hexaflex con los seis procesos nucleares de la flexibilidad psicológica.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills72026年10月12日 更新

Acceptance & Commitment Therapy (ACT) nach Steven Hayes: Hexaflex-Modell mit den sechs Kernprozessen psychischer Flexibilität.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills72026年10月12日 更新

Acceptance & Commitment Therapy (ACT) according to Steven Hayes: Hexaflex model with the six core processes of psychological flexibility.

日本語の概要は準備中です。原文の説明を表示しています。

ellmos-ai/skills72026年10月12日 更新

ellmos-ai のスキルをすべて見る

このスキルの問題を報告する