2

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

Matt Ball
  • 354,903
  • 100
  • 647
  • 710

1 Answers1

4

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

Community
  • 1
  • 1
Matt Ball
  • 354,903
  • 100
  • 647
  • 710