SnowStack.EncodingProbe.PowerShell

1.1.0

A PowerShell module for detecting the character encoding of text files. テキストファイルの文字エンコーディングを判定する PowerShell モジュールです。

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name SnowStack.EncodingProbe.PowerShell

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name SnowStack.EncodingProbe.PowerShell

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

Copyright © 2026 motoi.tsushima

Package Details

Author(s)

  • motoi.tsushima

Tags

encoding chardet charset text shift-jis euc-jp japanese bom utf8

Cmdlets

Resolve-Encoding Get-EncodingProbePlatformInfo Get-ProbedContent Set-ProbedContent Add-ProbedContent ConvertTo-DotNetEncoding

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

1.1.0
テキストの読み書きコマンドを追加しました。既存のコマンドと公開 API に変更はありません。

- Get-ProbedContent : 文字エンコーディングを判定してテキストファイルを読み込みます。
- Set-ProbedContent : 文字エンコーディング・BOM・改行コードを明示して書き込みます。
- Add-ProbedContent : 文字エンコーディングを保ったまま追記します。
- ConvertTo-DotNetEncoding : 各種の指定を System.Text.Encoding に変換します。

これらの -Encoding は統一語彙を受け付けます。同じ名前が PowerShell 5.1 と 7.x で同じ結果になり、
PowerShell 5.1 でも utf8NoBOM(BOM 無しの UTF-8)や shift_jis を名前で指定できます。
書き込みでは BOM 方針の定まらない裸の utf8 を受け付けません。utf8NoBOM または utf8BOM を指定してください。

Get-ProbedContent / Set-ProbedContent / Add-ProbedContent は、Resolve-Encoding と同じ
-Culture と -Strategy を受け取ります。日本語環境で韓国語や中国語のファイルを読むときは
-Culture ko-KR のように対象言語のカルチャーを指定してください。
欧米のテキストは -Strategy UtfUnknownOnly で読めます。

エラーメッセージは英語・日本語・韓国語・繁体字中国語・簡体字中国語に対応しています。
ヘルプ(Get-Help)も同じ 5 言語を同梱しています。

1.0.2
ライセンスリリース。Resolve-Encoding, Get-EncodingProbePlatformInfo コマンドレットを提供。

FileList

Version History

Version Downloads Last updated
1.1.0 (current version) 16 9/1/2026
1.0.2 20 8/10/2026
1.0.0 26 7/14/2026
1.0.0-preview6 9 7/11/2026
1.0.0-preview5 5 7/8/2026
1.0.0-preview4 14 7/2/2026
1.0.0-preview3 7 6/23/2026
1.0.0-preview2 7 6/19/2026
1.0.0-preview1 9 6/7/2026
Show more