I'm using lapply() to do http requests for a bunch of id's. Lapply then returns the result as a list of a list of a list structure.
I then apply ldply() to get it into a data frame format. localisedDestinationNameDf <- ldply(localisedDestinationName, data.frame)
This API essentially translates destination names, thus it's encoded in UTF-8 as i need all the special characters for various languages.
Before i manipulate the dataframe with ldply, the characters look as they should, after applying ldply seems to remove the UTF-8 encoding.
taxonomyDataDf <- ldply(taxonomyData, data.frame)
As an example in taxonomyDataDf we have the string "ピサ (州)", while in taxonomyDataDf the same value is converted into :
<U+30D4><U+30B5> (<U+5DDE>)
Can someone help me fix this please?