convert_file_encoding
Convert file encoding to prevent character issues, supporting UTF-8, CP949, EUC-KR, ASCII with optional backup.
Instructions
파일을 지정된 인코딩으로 변환합니다. 자동 백업 지원.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | 원본 파일 백업 여부 | |
| directory_path | Yes | 파일이 있는 디렉터리의 절대 경로 | |
| file_name | Yes | 변환할 파일명 (예: hello.cpp, test.h) | |
| target_encoding | No | 목표 인코딩 | utf-8-bom |
Input Schema (JSON Schema)
{
"properties": {
"backup": {
"default": true,
"description": "원본 파일 백업 여부",
"type": "boolean"
},
"directory_path": {
"description": "파일이 있는 디렉터리의 절대 경로",
"type": "string"
},
"file_name": {
"description": "변환할 파일명 (예: hello.cpp, test.h)",
"type": "string"
},
"target_encoding": {
"default": "utf-8-bom",
"description": "목표 인코딩",
"enum": [
"utf-8-bom",
"utf-8",
"cp949",
"euc-kr",
"ascii"
],
"type": "string"
}
},
"required": [
"file_name",
"directory_path"
],
"type": "object"
}