I am having troubles with the encoding of the osm data in R. Here is a reproducible example using the osmar package:
osmData <- osmar::get_osm(osmar::center_bbox(23.334360, 42.693180, 100, 100)) osmData$nodes$tags[80:100, ] #the output is not UTF-8
I have also downloaded a planet file from https://download.geofabrik.de/europe/. The filename is "bulgaria-latest.osm.bz2".
After unzipping it, installing osmosis, and reading the file with osmar::get_osm(source = osmsource_osmosis(fileName)) I still have the same issue. The cyrilics letters are not readable.
I am using a 64bit Windows 10 with R version 3.3.3. My default encoding is Bulgarian, but I have also tried English encoding in R with no help.
Any ideas how can I counter this?