项目作者: Aoba-raws

项目描述 :
A Powershell module which can detected encoding automatically
高级语言: PowerShell
项目地址: git://github.com/Aoba-raws/FileEncodingHelper.git
创建时间: 2020-06-16T07:28:52Z
项目社区:https://github.com/Aoba-raws/FileEncodingHelper

开源协议:MIT License

下载


FileEncodingHelper

A Powershell module can detected encoding automatically. And can transcode file to other encoding.
It is powered by UTF-unknown. Based on Mozilla Universal Charset Detector.

Usages

  1. #Get files encoding with wildcard.
  2. Get-FileEncoding *.txt
  3. #Convert files with wildcard.
  4. Convert-FileEncoding *.txt -SourceEncoding "shift-jis" -NewEncoding "utf-8" -OutputWithBom
  5. #Auto detect and convert
  6. Get-FileEncoding *.txt | Convert-FileEncoding -NewEncoding "utf-8" -OutputWithBom