i2van / UnicodeCharsetDetector

Text files Unicode charset detector w/wo BOM.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnicodeCharsetDetector

Latest build NuGet Downloads License

Table of Contents

Description

Text files Unicode charset w/wo BOM detector. Encodings supported:

  • UTF-7
  • UTF-8
  • UTF-16
  • UTF-32

Website

Download

NuGet

Example

Example application can be found here.

// Get file encoding.

var unicodeCharsetDetector = new UnicodeCharsetDetector.UnicodeCharsetDetector();

using var stream = File.OpenRead(fileName);

var charset = unicodeCharsetDetector.Check(stream);
var encoding = charset.ToEncoding();

License

About

Text files Unicode charset detector w/wo BOM.

License:MIT License


Languages

Language:C# 100.0%