title: Check if a string is UTF-8
body: <p>Is it possible? I want to check if a string is utf-8 encoded.</p>
  
  <p>UPDATE: So, the problem is: I have a php webservice. This webservice has a method that receives a string. I'm trying to pass a VB.NET JSON string to this webservice. json_decode always returns an error, saying that the string is not utf-8. If I pass the string and convert it using PHP utf8_encode, the accents get wrong! How could I solve that?</p>