I am having problems when extracting comments from posts using the RFacebook package.
localiza <- getPage(543362459038077,token = my_oauth,n=10)
post <- getPost(post = localiza$id[1], token = my_oauth) here
The problem is the encoding of the output. For example:
algu/U+00E9/m
Note that instead of "/", the output has <>
That word, for instance, should appear as
alguém
Any suggestions?
Thanks in advance!
Consider changing your
locale
. It's not a problem withRfacebook
. I can replicate the behavior you described by setting locale toC
, e.g.By switching the locale for character set handling to one with an extended character set, the desired output is achieved, e.g.
The value of the
locale
argument may be different on your system. See https://stat.ethz.ch/R-manual/R-devel/library/base/html/locales.html (or?locales
) for more information on setting locales.