utf8_replace
Replace text in an existing file and save as UTF-8 on Windows, avoiding Cursor's StrReplace compatibility issues.
Instructions
Replace text in an existing file and save as UTF-8. Use instead of Cursor StrReplace on Windows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file | |
| new_string | Yes | Replacement text | |
| old_string | Yes | Exact text to find | |
| replace_all | No | Replace all occurrences (default: false) |