title: How to remove odd characters in R wordcloud
body: <p>I'm trying to build a word cloud in R using corpus and various tm_map functions. The problem is I keep getting this odd symbol returned, the one with the euro symbol and the upside down quotes. It's coming up as second most frequent in my corpus. (There are one or two others but they're nowhere near as frequent so less of a problem.)</p>
  
  <p><a href="https://i.stack.imgur.com/Dpywm.jpg" rel="nofollow noreferrer">Word cloud with rogue €“</a></p>
  
  <p>Any ideas how to get rid of this? </p>
  
  <p>This is a sample of the text in .txt format before it is pulled into R:</p>
  
  <blockquote>
    <p>The move to Virtual Replication 6 added replication in and out of AWS where that had only previously been one-way, into the Amazon cloud storage platform. 
    It had taken longer to develop in AWS, said Zerto technology evangelist Gjisbert Janssen van Doorn. “Bi-directional replication to and from Azure was where we started. We try to develop natively via APIs for the clouds we support but that had taken longer with AWS.” Zerto has also added bi-directional replication with IBM Cloud. van Doorn said the company had no plan to add support for Google Cloud Platform. “It’s something we’re keeping an eye on. It’s on the wishlist rather than the roadmap,” he said.</p>
  </blockquote>
  
  <p>This is how it comes out after being pulled in to R via Corpus():</p>
  
  <blockquote>
    <p>The move to Virtual Replication 6 added replication in and out of AWS where that had only previously been one-way, into the Amazon cloud storage platform.\n\nIt had taken longer to develop in AWS, said Zerto technology evangelist Gjisbert Janssen van Doorn. â€œBi-directional replication to and from Azure was where we started. We try to develop natively via APIs for the clouds we support but that had taken longer with AWS.â€\u009d\n\nZerto has also added bi-directional replication with IBM Cloud. van Doorn said the company had no plan to add support for Google Cloud Platform. â€œItâ€™s something weâ€™re keeping an eye on. Itâ€™s on the wishlist rather than the roadmap,â€\u009d he said.</p>
  </blockquote>
  
  <p>Then I run this code:</p>
  
  <pre><code># Convert the text to lower case
  corpus &lt;- tm_map(corpus, content_transformer(tolower))
  # Remove numbers
  corpus &lt;- tm_map(corpus, removeNumbers)
  # Remove english common stopwords
  corpus &lt;- tm_map(corpus, removeWords, stopwords("english"))
  # Remove punctuations
  corpus &lt;- tm_map(corpus, removePunctuation)
  # Remove your own stop word
  # specify your stopwords as a character vector
  corpus &lt;- tm_map(corpus, removeWords, c("new", "products", "way", "back", 
  "can", "need", "also", "Ã¢", "look", "will", "one", "right",
                                      "move", "gorge", "mathieu", "like", 
  "said", "€“", "â€“", "â", "data",
                                      "use", "storage"))
  # Remove punctuations
  corpus &lt;- tm_map(corpus, removePunctuation)
  # Eliminate extra white spaces
  corpus &lt;- tm_map(corpus, stripWhitespace)
  </code></pre>
  
  <p>After that the same body of text looks like this:</p>
  
  <blockquote>
    <p>virtual replication added replication aws previously oneway amazon cloud platform taken longer develop aws zerto technology evangelist gjisbert janssen van doorn €œbidirectional replication azure started try develop natively via apis clouds support taken longer awsâ€\u009d zerto added bidirectional replication ibm cloud van doorn company plan add support google cloud platform €œitâ€™s something weâ€™re keeping eye itâ€™s wishlist rather roadmap</p>
  </blockquote>
  
  <p>So, those tm_map functions haven't got rid of all the junk so the word cloud I run from this still contains them.</p>
  
  <p>Any ideas how to fix this?</p>