Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ConvertToUTF8のメニューにCP932を追加する(自動認識しないけどとりあえずCP932のファイルは読み書き可能)
{
// supported encoding list, name & code in pair
"encoding_list" : [
["Chinese Simplified (GBK)", "GBK"],
["Chinese Traditional (BIG5)", "BIG5-HKSCS"],
["Korean (EUC-KR)", "EUC-KR"],
["Japanese (CP932)", "CP932"],
["Japanese (Shift_JIS)", "Shift_JIS"],
["Japanese (EUC-JP)", "EUC-JP"],
["UTF-8", "UTF-8"]
],
// Maximum size for encoding cache, 0 means no cache
"max_cache_size" : 100,
// Maximum lines to detect, 0 means unlimited
"max_detect_lines" : 600,
// Action when previewing file: no_action or convert_and_open
"preview_action" : "no_action",
// Convert encoding options when loading/saving: always, never
"convert_on_load" : "always",
"convert_on_save" : "always"
}
[
{
"id": "file",
"children":
[
{
"caption": "Set File Encoding to",
"children":
[
{ "caption": "Chinese Simplified (GBK)", "command": "convert_to_utf8", "args": {"encoding": "GBK", "stamp": "0" } },
{ "caption": "Chinese Traditional (BIG5)", "command": "convert_to_utf8", "args": {"encoding": "BIG5-HKSCS", "stamp": "0" } },
{ "caption": "Korean (EUC-KR)", "command": "convert_to_utf8", "args": {"encoding": "EUC-KR", "stamp": "0" } },
{ "caption": "Japanese (CP932)", "command": "convert_to_utf8", "args": {"encoding": "CP932", "stamp": "0" } },
{ "caption": "Japanese (Shift_JIS)", "command": "convert_to_utf8", "args": {"encoding": "Shift_JIS", "stamp": "0" } },
{ "caption": "Japanese (EUC-JP)", "command": "convert_to_utf8", "args": {"encoding": "EUC-JP", "stamp": "0" } },
{ "caption": "-" },
{ "caption": "UTF-8", "command": "convert_to_utf8", "args": {"encoding": "UTF-8", "stamp": "0" } }
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment