title: Plotly tooltip showing unicode character instead of letters in shiny server (R
body: <p>I have a shiny application running in a shiny server that started giving errors for all accented characters today (it was working with no errors until yesterday night).</p>
  <p>I realized that all files seemed to be sourced using other types of encoding than utf-8. Thus, I tried forcing it using <code>source('file.R', encoding='utf-8')</code> , but this gives an error and the application doesn't run.</p>
  <p>Since I could not find the reason to why this was happening, I changed all characters to their unicode format (\u00xx) and used the <code>enc2utf8</code> where needed.</p>
  <p>After doing this, most of the application seemed to be working fine. The only problem that I am having now, is that the tooltip of my plotly charts started showing the unicode value instead of the character as shown in the image below. I tried not using the <code>enc2utf8</code> on those dataframes but it also showed the characters with errors. For example, it should be <code>Último</code> but it appears <code>&lt;c3&gt;&lt;9a&gt;ltimo</code> when not using the <code>enc2utf8</code>.</p>
  <p><a href="https://i.stack.imgur.com/Vys06.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vys06.png" alt="enter image description here" /></a></p>
  <p>How do I solve this problem? Is there a better way to force the files to be read in utf-8 instead of wharever encoding it is being read?</p>
  <p>Extra information:</p>
  <ul>
  <li>In RStudio I am saving all files as UTF-8 by default, so I assumed the encoding should not be an issue</li>
  <li>In my local machine (windows) the application runs just fine and the plots are shown perfectly. The errors only occur on the server that runs in a linux machine</li>
  </ul>