title: R: Replace Special Characters
body: <p>I have a dataframe as with special characters as below</p>
  
  <pre><code>Key  Q1   Q2
  22   aSk   aÃ…Â k
  23   aSk   aÃ…Â k
  24   aSk   aÃ…Â k
  </code></pre>
  
  <p>I would like to replace the "Ã…Â k" (including the space between k) in Q2 with "aSk" to have result as below (same as Q1)</p>
  
  <pre><code>Key  Q1   Q2 
  22   aSk   aSk
  23   aSk   aSk
  24   aSk   aSk
  </code></pre>
  
  <p>I have tried to use gsub function in R</p>
  
  <pre><code>df$Q2 &lt;- gsub("[Ã…Â]", "S", df$Q2) 
  </code></pre>
  
  <p>but I'm unable to remove the "space" and get the result as below instead</p>
  
  <pre><code>Key  Q1   Q2 
  22   aSk   aSSS k
  23   aSk   aSSS k
  24   aSk   aSSS k
  </code></pre>
  
  <p>Can I know what's wrong with my code and how to remove the "space" and "SSS" in R?</p>
  
  <p>(The actual word in my raw file in csv is "aÅ k". However, it appears as "aÃ…Â k" in R)</p>
  
  <p>Thanks.</p>