CharsetDetector / UTF-unknown

Character set detector build in C# - .NET 5+, .NET Core 2+, .NET standard 1+ & .NET 4+
303 stars 45 forks source link

DetectFromString #122

Closed foxi69 closed 3 years ago

foxi69 commented 3 years ago

is it possible to detect from string then convert it for the better encoding?

rstm-sf commented 3 years ago

In the .NET, string is always utf-16 encoded. Therefore, from string we can always get the required byte array.

The approach in this library does not give 100% results. Therefore, I see no reason to add such functionality to the core library

304NotModified commented 3 years ago

I assume your question has been answered, if not, please let us know!