My page content displays properly on the large screen page, but when accessed from mobile (jquerymobile) app page, the special characters are not displayed. Im using JqueryMobile 1.4.0 with Jquery 1.7.2 (all from google hosted libs).
For instance "Call Centre Agent - ADSL (INBOUND AND OUTBOUND)" on the large screen app reads ok but becomes "Call Centre Agent – ADSL (INBOUND AND OUTBOUND)" on the mobile page.
I tried the suggestion which demonstrated similar problem but it did not solve mine.
My mobile app html snippet is:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
....
The php file headers snippet:
@header("Content-Type: text/html; charset=utf-8");
...
I also tried the suggestion to set the ajaxsetup The additional jquery snippet added to setup ajax:
$.ajaxSetup({
contentType: 'charset=utf-8',
beforeSend: function(jqXHR) {
jqXHR.overrideMimeType('charset=utf-8');
}
});
None of the mentioned suggestions helped.
Anyone who got over this can please suggest how, and alternative techniques are most appreciated.