title: Strange unexpected tokens inside the string
body: <p>I have two simmingly identical strings in two data frames. For example, both</p>
  
  <pre><code>df_cont$winner[20]
  df_assist$winner[609]
  </code></pre>
  
  <p>return "ivarovskaya"</p>
  
  <p>But the comparison</p>
  
  <pre><code>identical(df_cont$winner[20], df_assist$winner[609])
  </code></pre>
  
  <p>returns FALSE.</p>
  
  <p>So, dplyr joins don't work on them and when I count characters in those strings, I get different numbers.</p>
  
  <p>Then I found out that copying those strings from View() panel into Rscript results in this:</p>
  
  <p><img src="https://i.stack.imgur.com/ysO9X.png" alt="unexpected tokens in string"></p>
  
  <p>Output of problem variables looks like this:</p>
  
  <pre><code>&gt; df_cont$winner[20]
  [1] "iva­rov­ska­ya"
  &gt; df_assist$winner[609]
  [1] "ivarovskaya"
  &gt; nchar(df_cont$winner[20])
  [1] 14
  &gt; nchar(df_assist$winner[609])
  [1] 11
  </code></pre>
  
  <p>dput() function also results in identical strings:</p>
  
  <pre><code>&gt; dput(df_cont$winner[20])
  "iva­rov­ska­ya"
  &gt; dput(df_cont$winner[20])
  "iva­rov­ska­ya"
  </code></pre>
  
  <p>How can I get rid of those strange red dots?</p>