LoginSignup
0
0

More than 5 years have passed since last update.

PowerShellでSHIFT-JIS to UTF-8 BOM

Last updated at Posted at 2016-03-03

SHIFT-JISからUTF-8へ一括変換。
変換後はBOM付でした。

PS > Get-ChildItem ./ -Recurse -Include *.R | Rename-Item -NewName {$_.FullName + “.bkup”}| Rename-Item -NewName {$_.FullName + “.bkup”}
PS > Get-ChildItem ./ -Recurse -Include *.R.bkup | ForEach-Object {Get-Content $_.FullName | Out-File -Encoding UTF8 ($_.FullName -replace ‘.R.bkup’,’.R’)}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0