title: How to Encode Thai Characters in R
body: <p>I have read in the text file using <code>read.table</code>.  </p>
  
  <pre><code>group &lt;- read.table("Sample_No2.txt", header = T, sep = ",", stringsAsFactors = F)
  </code></pre>
  
  <p>When I click on the <code>group</code> variable, it returns characters, which are not in English (It is in Thai language), in weird character (Below figure).   </p>
  
  <p>How do I make the software recognize the language ?</p>
  
  <p><img src="https://i.stack.imgur.com/Loccz.jpg" alt="enter image description here"></p>
  
  <p>Thank you</p>