Hi Garmin Developers,
I've encountered an issue while working on a watch face project using the Connect IQ SDK. The problem occurs when trying to display the day of the week in Spanish.
Context: I’m using the following code to get the day of the week in Spanish:
var today = Gregorian.info(Time.now(), Time.FORMAT_MEDIUM); dateDayOfWeekLabel.setText(today.day_of_week.toString());
For "Wednesday" (Miércoles), it should render as "Mié" but instead shows "Mi�".
If you do the following you can also reproduce this issue:
var utf8Array = [77, 105, 195, 169]; // Mié var utf8String = StringUtil.utf8ArrayToString(utf8Array);
Problem: This issue occurs both in the Garmin simulator and on the device, displaying incorrect characters.
I sow a similar issue in this ticket from 9 years ago: https://forums.garmin.com/developer/connect-iq/f/discussion/1153/unicode-literals-in-monkey-c/1801187#1801187, but I can't see any solution or workaround on this, and I cant make it work.
Any guidance or recommendations would be greatly appreciated.
Thank you in advance for your time and help.