Issue w/v5.1.0
I used to be able to embed unicode characters in titles, hovertext, etc. (e.g. \u00B0 for degree symbol) in v4.7.1, but upon using latest release, it appears that live rendering via fig.show() works correctly (i.e. the degree circle is shown), but if I create a .html file and auto-open, the symbol doesn’t resolve and I get a ‘diamond question mark’ symbol. Imagine it is related to the underlying .js engine?
Is there a new escape method or other preferred workaround?
Simple example below embedding symbol in plot title…
import plotly.express as px
df = px.data.gapminder().query("country=='Canada'")
fig = px.line(df, x="year", y="lifeExp", title="Life expectancy in Canada (\u00B0 <- degree symbol)")
fig.write_html("Test.html", auto_open=True)
#fig.show() # uncomment to see correct operation