bom_manage
Detect, add, or remove Byte Order Mark (BOM) in files. Supports UTF-8, UTF-16, and UTF-32 detection, and UTF-8 BOM addition/removal.
Instructions
Detect, add, or remove BOM (Byte Order Mark) in a file. Supports UTF-8/UTF-16/UTF-32 BOM detection and UTF-8 BOM add/remove.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the file. Example: D:\Projects\file.txt | |
| action | Yes | Action to perform: 'detect' - detect BOM type, 'add_utf8' - add UTF-8 BOM, 'remove_utf8' - remove UTF-8 BOM |