The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
I am developing a Power BI Custom Visual R html. Everything works fine except when writing international characters like the norwegian letters æ ø å it looks terrible. It actually comes out in power bi desktop as Ã, in stead of ø and Ã| in stead of æ and so on. I have tried to search the community, but I haven't found any solution on this. It works nicely in RStudio, but when I run this code in visual code and create a pbiviz package command and then update the component in Power BI desktop the characters turn up as non character. The customers react badly on this and I hope somebody has a solution on this.
thanks and regards Geir
Here you can see my Power BI Custom Visual in R (plotly and ggplot2). The text you see under Values on the right should be seen in the legends part of the R html visual. It is ok in RStudio but when it is shown in Power BI Desktop, it has some terrible characters for the Norwegian special characters Ø Æ Å.
I have tried to search the net for solutions. I have tried to put the character as unicode like \u00D8, but with no luck. I have tried put these lines in my code
##########################
One thing I have discovered is that I ran into the same problem with other Custom R Visuals from Microsoft App Source. There must be something wrong in Power BI Desktop that corrupts these characters. I can't use Power Query since all come from the component. The customer is complaining of course 😞
Is there any one out there that can explain to me what is wrong here
regards Geir
That sounds like you use 1252 (Western) character set when you should be using 65001 (UTF-8)
hi again I have added some more details about my case you responded. I can perhaps look at the new added information to see if there are anything you can look at.
regards geir
I think you want to look at your source data. The encoding may already be broken at the source.
Here you can see my code run in RStudio. The data is dumped from the Power BI desktop. Here you can see the legends and the x axis title are showing the characters correctly. It can be that when the custom component run the code and receiving the data. It can be different. But I don't know if it is possible to debug the R code in Visual Code when hitting the refresh button in my power bi report. I don't know how to discover this except make my code write to a file