-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accents (é, á, etc.) as Titles of Menu items #11
Comments
@keanulee iOS or Android? Or Both? |
Reproduced with iOS (unsure about Android) |
Tested on CloudPebble and Android and 'Some accént' works as expected. Previously when I was working with OSX SDK, I was having trouble with non-ASCII characters. Solved the issue by making sure all my source files were using UTF-8 encoding. |
In my case the string with the accent came from another source (response of an XHR), so I don't think it has to with the JS source code encoding (the example I used above is just a simplified reproduction of the issue). |
Nevertheless you should make sure your characters are in UTF-8. Just to make sure, try something like this:
|
I bet there is an assumption somewhere that the length of a character is always one byte. In UTF-8, some characters take two bytes. Consider the following example:
The same bug is in Simply.js. |
It takes time for changes to propagate to CloudPebble. Sorry for the wait everyone. Odd that Simply.js has the same bug since it uses App Message directly to serialize strings. That would be an issue with PebbleKit JS itself. I'll verify and pass that along. |
If a character with an accent is present in the title of a menu item, the entire title is empty.
The text was updated successfully, but these errors were encountered: