problem with encoding in result of `read_mow_data()`
Closed this issue · 1 comments
hansvancalster commented
Running the example for read_mow_data()
from the vignette suggests encoding problems:
Maybe something to discuss with @inbo/bmk
Originally posted by @hansvancalster in #102 (comment)
ElsLommelen commented
Looks like an encoding problem. Some possible solutions:
- I haven't looked at it into detail, but maybe this
ISO-8859-15
is not the right one to use in a Windows environment??file
gives an elaborate explanation on encodings in different OS, maybe this helps? - Does this encoding problem show up in all output, or only in this table? (Some characters are not displayed correctly in R, but they are correctly interpreted and will be displayed correctly in for instance Rmd-outputs.)
- Another problem could be that the
.txt
file was not saved in the expected format. When generating and writing a.csv
file in R, I often get similar problems when I want to read it again in UTF-8 format. What helps in this case, is open the text file in Notepad++, specify the intended encoding (or convert to the intended encoding and/or make sure the characters are displayed correctly) and save it as such. After that, I could perfectly read the file without encoding problems, at least in my case.