Acknowledged

Degrees symbol in GEO_DMS string shows up as a strange character

When formatting a position in DMS format on the Instinct Crossover and Venu Square 2 like this:

var dms=posn.toGeoString(Position.GEO_DMS) as String;
The degrees symbol in the string shows up as Unicode 57520, hex 0xE0B0 instead of decimal 176.
This happens in the simulator in SDK 7.4.3.
I didn't test every device but others I tried do not have this problem.
Parents
  • Thanks for the context!

    Regardless, I think it’s strange that toGeoString() returns U+E0B0 instead of U+00B0, since U+E0B0 is a private use unicode character. Is there some reason toGeoString() can’t just return U+00B0?

    U+00B0 is actually rendered correctly in the simulator for Venu Square 2, for both number and non-number fonts.

    But if it works on a real Venu Square 2 device, then I guess it’s ok. 

Comment
  • Thanks for the context!

    Regardless, I think it’s strange that toGeoString() returns U+E0B0 instead of U+00B0, since U+E0B0 is a private use unicode character. Is there some reason toGeoString() can’t just return U+00B0?

    U+00B0 is actually rendered correctly in the simulator for Venu Square 2, for both number and non-number fonts.

    But if it works on a real Venu Square 2 device, then I guess it’s ok. 

Children