Character encoding in Garmin Connect IQ platform?

Former Member
Former Member
What is character encoding in Garmin Connect IQ platform? How can I change it, if possible at all? Can I use unicode characters in strings? If so, how?

I'd like to show characters like á,í,ű (...), but on simulator I can see question marks instead of this characters.

Thanks in advance!
  • Former Member
    Former Member over 10 years ago
    Character Encoding

    A character encoding tells the computer how to interpret raw zeroes and ones into real characters. It usually does this by pairing numbers with characters. Words and sentences in text are created from characters and these characters are grouped into a character set. There are many different types of character encodings floating around at present, but the ones we deal most frequently with are ASCII, 8-bit encodings, and Unicode-based encodings.......More about...Character Encoding

    Mercal
  • Former Member
    Former Member over 10 years ago
    You should be able to use characters like á,í,ű, etc as a string resource, load them via Ui.loadResource() then use them in the UI.

    <string id="test">á,í,&#369;</string>

    var string = Ui.loadResource(Rez.Strings.test);
    dc.drawText(x, y, Ui.FONT_MEDIUM, string, Ui.TEXT_JUSTIFY_LEFT);


    Result:

    This was done using the 1.1.3 SDK. There is a change that went in right after the 1.1.3 build that would let you hard code a string like this so you wouldn't have to use a string resource.