UTF-8 is one Unicode encoding. UTF-16 and UTF-32 are other Unicode encodings.
Unicode defines a numeric value for each character; the degree symbol has a value of 0xB0 or โโ176 in decimal value. Unicode does not determine how these numeric values โโare represented.
UTF-8 encodes the value 0xB0 as two consecutive octets (bytes) with the values 0xC2 0xB0 .
UTF-16 encodes the same value either as 0x00 0xB0 , or as 0xBo 0x00 , depending on the entity.
UTF-32 encodes it as 0x00 0x00 0x00 0xB0 or as 0xB0 0x00 0x00 0x00 , again depending on the entity (I assume other orderings are possible).
source share