SnowStack.EncodingProbe 1.0.0-preview.3

This is a prerelease version of SnowStack.EncodingProbe.
dotnet add package SnowStack.EncodingProbe --version 1.0.0-preview.3
                    
NuGet\Install-Package SnowStack.EncodingProbe -Version 1.0.0-preview.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SnowStack.EncodingProbe" Version="1.0.0-preview.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SnowStack.EncodingProbe" Version="1.0.0-preview.3" />
                    
Directory.Packages.props
<PackageReference Include="SnowStack.EncodingProbe" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SnowStack.EncodingProbe --version 1.0.0-preview.3
                    
#r "nuget: SnowStack.EncodingProbe, 1.0.0-preview.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SnowStack.EncodingProbe@1.0.0-preview.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SnowStack.EncodingProbe&version=1.0.0-preview.3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SnowStack.EncodingProbe&version=1.0.0-preview.3&prerelease
                    
Install as a Cake Tool

SnowStack.EncodingProbe

このソリューションには以下の二つのプロジェクトが含まれています。

SnowStack.EncodingProbe : NuGetパッケージ

SnowStack.EncodingProbe.PowerShell : PowerShellコマンドレット

SnowStack.EncodingProbe パッケージは、文字エンコーディングの推測を行うクラスライブラリです。

SnowStack.EncodingProbe.PowerShellコマンドレットは、Resolve-Encoding というPowerShellコマンドレットを格納しています。Resolve-Encoding は EncodingProbeパッケージを使用して、文字エンコーディングの推測を行うコマンドレットです。

EncodingProbe の主な機能は以下の様になります。

  • 文字エンコーディングの推測

  • BOMの有無の確認

  • 改行コードの種類の確認

  • 稼働しているOSの種類

  • コマンドが認識しているカルチャー情報の表示

SnowStack.EncodingProbe パッケージは、内部で UTF.Unknown を使用しています。

EncodingProbe の独自文字エンコーディング推測処理で、英語・日本語・韓国語・繁体字中国語・簡体字中国語の推測を行い、それらの推測でわからなかった場合は、 UTF.Unknown に文字エンコーディング推測を任せます。

UTF.Unknown は欧米などのシングルバイト文字エンコーディングの推測には優れていますが、東アジア漢字文化圏の旧マルチバイト文字エンコーディングの推測では、やや推測信頼性に劣る欠点があり、東アジア漢字文化圏の文字エンコーディングの推測処理だけを、EncodingProbe の独自文字エンコーディング推測処理で補っています。

両者の文字エンコーディングの推測処理を組み合わせることにより、世界中の文字エンコーディングの推測処理ょを可能にしています。

2026年6月19日に preview2 をリリースしました。

まだ、テスト中のため正式版はリリースしていません。今しばらくお待ちください。

NuGet.org より SnowStack.EncodingProbe を公開しました。

以下の記事で使い方の解説を行っています。

SnowStack.EncodingProbe NuGet Package 解説

また、PowerShell コマンドレットの解説は同ブログの以下の記事で解説しています。

SnowStack.EncodingProbe.PowerShell 解説

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.3 45 6/23/2026
1.0.0-preview.2 49 6/19/2026
1.0.0-preview.1 49 6/7/2026

初回リリース。文字エンコーディング推測 / BOM / 改行コード判定に対応。