This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I am pulling twitter data for my Machine Learning experiment
After I get the data from my search, I want to turn it to a dataframe like this:
tweets <- searchTwitter("Bicester Village", n=1000)
df <- do.call("rbind", lapply(tweets, as.data.frame))
Twitter data arrives as list of S4 elements. I can successfully carry out experiment in my R Studio and get the results I want.
I then want to see if the data will display in sources, but I see this error:
Error
Details: "Unable to translate bytes [ED][A0] at index 1 from specified code page to Unicode."
I have tried endlesly to convert to UTF-8 (which is not a problem in R Studio), but no luck
Hi @sashan,
Can you share some detail content about this issue?
Since you mentioned about use r script with twitter api, you can also take a look at below article :
Twitter Analysis using SSIS 2016 and SQL Server R Services
Regards,
Xiaoxin Sheng
Hi @sashan
I too got the same issue.
I have solved this as below
library(twitteR)
library(stringi)
tweets <- searchTwitter("Bicester Village", n=100,lang="en")
df <- twListToDF(tweets)
df$text <- stri_encode(df_tweets$text, "", "UTF-8")
But strange thing is it works fine in RStudio but not in power bi query sometimes
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 48 | |
| 33 | |
| 24 | |
| 24 |