Created
February 2, 2023 00:18
-
-
Save kawanet/624786b756e85b671d4979d6a873cf52 to your computer and use it in GitHub Desktop.
Shift_JIS CP932 を BOM 付き UTF-8 に変換するワンライナー
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -e 'require("fs").writeFileSync(process.argv[1], "\uFEFF" + require("iconv-cp932").decode(require("fs").readFileSync(process.argv[1])))' filename.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.npmjs.com/package/iconv-cp932