Skip to content

Instantly share code, notes, and snippets.

@kawanet
Created February 2, 2023 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kawanet/624786b756e85b671d4979d6a873cf52 to your computer and use it in GitHub Desktop.
Save kawanet/624786b756e85b671d4979d6a873cf52 to your computer and use it in GitHub Desktop.
Shift_JIS CP932 を BOM 付き UTF-8 に変換するワンライナー
node -e 'require("fs").writeFileSync(process.argv[1], "\uFEFF" + require("iconv-cp932").decode(require("fs").readFileSync(process.argv[1])))' filename.csv
@kawanet
Copy link
Author

kawanet commented Feb 2, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment