Fix Encoding
fc_fix_encodingDetects and repairs file encoding errors such as mojibake and double UTF-8, with options to preview issues and create a backup before fixing.
Instructions
Detects and repairs encoding errors (mojibake, double UTF-8).
Args:
path (string): Path to the file
dry_run (boolean): Only show problems
create_backup (boolean): Create backup
Repairs common mojibake patterns like:
ä -> ae, ö -> oe, ü -> ue (German umlauts)
ß -> ss, € -> EUR
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "fc_fix_encoding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| dry_run | No | Preview only | |
| create_backup | No | Create backup |