I am trying to make a weather app using OpenWeatherMap api. Apparently,i am trying to update my element's text through javaScript with a temperature and a '℃' symbol. The problem is that the '℃' symbol is not using the font-family mentioned in the corresponding css whereas the temperature value is all fine. I have tried it this way-
$("#temp").text(data.temp+String.fromCharCode(8451));
Also,i tried this-
$("#temp").text(data.temp+String.fromCharCode(8451)).replace('font-family','Aclonica');
I searched for similar SO questions and googled for solution but got nothing. Any kind of help would be appreciated. thanks in advance.