Nico Espinoza
Nico Espinoza

Reputation: 21

How do I detect the encoding of some text?

How can I identify which format some text is encoded in, either ASCII, Unicode or UTF-8?

Upvotes: 2

Views: 568

Answers (1)

Matt Ball
Matt Ball

Reputation: 359816

Short answer

There is no guaranteed way to detect the encoding of an arbitrary set of bytes.


Long answer

Ripped from my answer here.


See also

Upvotes: 4

Related Questions