Thursday, 8 August 2013

C# is valid UTF-8

C# is valid UTF-8

I have a string read as a UTF8 (not from a file, can't check BOM). The
problem is that sometimes the original text was formed with another
encoding, but was converted to UTF8 - so the string is not readable, sort
of gibberish.
is it possible to detect that this string is not actual UTF8?
Thanks!

No comments:

Post a Comment