Incorrect characters with emphasis in alerts and confirm with Phonegap / Cordova

I try to display warnings and confirm fields with accents in them, but when I run the application, what I get is the wrong character, I checked the file encoding, and this is UTF-8, and in index.html I installed utf-8.

Does anyone have an idea? Thanks.

+4
source share
1 answer

You cannot use special characters in the warning or acknowledge, because they do not directly accept the special character, instead you can use the \ u escape sequence in the JavaScript string literal to display these characters.

alert("\u00e6\u00f8\u00e5") 

to get a conclusion like this æøΓ₯

You can find the utf-8 equivalent for the character you want here

+7
source

Source: https://habr.com/ru/post/1498020/


All Articles