跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

<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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月19日 更新

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

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月19日 更新

Prüfungsvorbereitung, Selbsttests, Probeklausuren und systematische Fehleranalyse.

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月19日 更新

史蒂芬·海斯(Steven Hayes)的接纳承诺疗法(ACT):包含心理灵活性六大核心过程的 Hexaflex 模型。

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月19日 更新

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

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月19日 更新

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

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月19日 更新

查看 ellmos-ai 的全部技能

报告此技能的问题