Reputation: 21
How can I identify which format some text is encoded in, either ASCII, Unicode or UTF-8?
Upvotes: 2
Views: 568
Reputation: 359816
There is no guaranteed way to detect the encoding of an arbitrary set of bytes.
Ripped from my answer here.
Upvotes: 4