title: Detect encoding of a string in C/C++
body: <p>Given a string in form of a pointer to a array of bytes (chars), how can I detect the encoding of the string in C/C++ (I used visual studio 2008)?? I did a search but most of samples are done in C#. </p>
  
  <p>Thanks</p>