title: How to know string encoding in C#
body: <p>I am getting a string from a third party program that I don't control. My piece of the code outputs this in HTML. This works fine in English, but in other languages it will show in a funny way. For example, accents in Spanish look funny and characters in eastern languages (i.e. korean) will look very funny. I am pretty sure I need to do some encoding work so that all languages display correctly.</p>
  
  <p>My understanding of encoding is kind of poor, so before posting the real question, which I intuitively think it is: "How do I encode this to UTF-8 in C#", I would like to get more understanding on the matter by posting simpler questions. </p>
  
  <p>My question here is: <strong>How do I know which type of encoding does my input string has?</strong> In Spanish, it looks like this when I get an accent: "AcciÃ³n", instead of "Acción". Is this ANSI or what am I dealing with?</p>
  
  <p>Thanks a lot in advance!</p>