title: How to convert .rds files to .csv in R without losing special characters?
body: <p>Good day! I need some help for this. So I am trying to do some text mining where I am counting the word frequencies for every word in a text. I was able to do it fine in R with all the different characters, but the problem lies when I export it to .csv file. Basically, I am working on Hungarian text and when I try to save my data frame to .csv, three accented letters (ő, ű, ú) get converted to non-accented ones (o, u and u). It doesn't happen when the file is in .rds but I need to convert it to a .csv file so one of my consultants (zero knowledge of programming) can look at it in a normal Excel file. I tried some tricks e.g. making sure Notepad++ is in UTF-8 format, adding a line like this (<code>fileEncoding = &quot;UTF-8&quot;</code> or <code>encoding =&quot;UTF-8&quot;</code>) when writing the .csv file using the <code>write.csv</code>
  command, but it doesn't work.</p>
  <p>Hope you can help me.</p>
  <p>Thank you.</p>