I'm using RStudio (3.3.1) on macOS Sierra (10.12.5) to scrape the user profile information of the followers of certain Twitter users.
My problem is that when a user's profile description is in Arabic the text that is returned is garbled. For example,this user description:
جزائريٌّ يسري دمُ الشهداء في عروقِه ويطلُب العِلم حتّى يعلم الذين كفروا أنّ دين الإسلام هو دينُ الحق ،والحقَّ أقُول..
becomes this:
جزائريٌّ يسري دم٠الشهداء ÙÙŠ عروقÙÙ‡ ÙˆÙŠØ·Ù„ÙØ¨ العÙلم ØØªÙ‘Ù‰ يعلم الذين ÙƒÙØ±ÙˆØ§ أنّ دين الإسلام هو دين٠الØÙ‚ ،والØÙ‚Ù‘ÙŽ أقÙول.. #أنشط على ØµÙØØ©
This is particularly problematic as the project I am working on is focused on Muslim users of Twitter and a lot of the data is in Arabic.
I'm guessing this is a problem with the encoding and this answer to a similar question suggested updating to RStudio 3.3.3 but when I tried that it made no difference and I had issues with the compatibility of some of my packages.
Any help would be appreciated.