Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to use a "degree" symbol in xml

Tags:

java

symbols

xml

I don't know why but I'm unable to use a "degree" symbol (°) with xml Text. I tried with ° but it doesn't work. Output is just like this

Heart Rate: 78, Respiratory Rate: 102<12, Temp (degF): 70°
, Oxygen Sat (%): 100.Non-invasive Blood Pressure: Systolic: <107, Diastolic: &51 Mean: 70
like image 431
jinil Avatar asked Feb 09 '12 08:02

jinil


2 Answers

Use &#176; or &#xb0; (same as &#x00b0;).

This will convert it into degree. See the unicode character page for details.

like image 182
vikiiii Avatar answered Sep 19 '22 10:09

vikiiii


Use UTF encoding. Also, there is no &deg;-entity in XML.

like image 26
Supr Avatar answered Sep 21 '22 10:09

Supr