I tried to just copy and paste it but when i try to run the program it shows up like this, �. Just wondering if there is a way to do it.
I think the cleanest is to encode it as HTML character entity: °
. This doesn't work in Label
, but it does for instance in HTML
which is practically a drop-in replacement for Label
:
new HTML("10°C");
instead of
new Label("10°C");