Weather
一个面向 Data & APIs 场景的 Agent 技能。原始说明:Get current weather and forecasts (no API key required).
一个面向 Data & APIs 场景的 Agent 技能。原始说明:Detect text file encoding (UTF-8, GBK, Latin-1, etc). Auto-detect BOM markers. Pure Python standard library, no API key required.
slug: cn-text-encoding-detector
name: Text Encoding Detector
version: "1.0.0"
description: "Detect text file encoding (UTF-8, GBK, Latin-1, etc). Auto-detect BOM markers. Pure Python standard library, no API key required."
keywords: encoding, charset, utf-8, gbk, detect
license: MIT-0
tags:
Automatically detect the character encoding of text files.
python3 scripts/encoding_detector.py --file document.txt
{
"file": "document.txt",
"encoding": "UTF-8",
"size_bytes": 15234
}
Detection tries UTF-8 first, then GBK. If both fail, returns "UNKNOWN".