0

I am using load function to load the html content of DIV. the content contains arabic characters, after loading the arabic characters appears as ?????????, I tried also $.get function the same problem. If I open the html directlly from the browser the arabic apperas currectlly. Can any one help how to solve this problem

  • can you give us an example for your html content and div code , i think you can solve it by encoding conf please provide code – shareef May 27 '12 at 05:40
  • function loadSearchPanels(url) { $("#panel").load(url); }
    ÇáãäØÞÉ:

    المنطقة:
    –  May 27 '12 at 05:43
  • What encoding does the page you're loading from use? – Ansari May 27 '12 at 18:42

3 Answers3

0

To show arabic text you need to do some encoding and change browser settings. You can get help from following links:

How can I view Arabic/Persian numbers in a HTML page with strict doctype?

http://www.w3.org/International/tutorials/bidi-xhtml/

HTML Arabic text

http://www.alanwood.net/unicode/arabic.html

You can try this

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Community
  • 1
  • 1
thecodeparadox
  • 86,271
  • 21
  • 138
  • 164
0

Sir just add the encoding format to your html content

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hilmi
  • 3,411
  • 6
  • 27
  • 55
-1

To solve this problem just use this after database connection:

$mysqli->set_charset('utf8mb4');       // object oriented style 
<br/>
mysqli_set_charset($link, 'utf8mb4');  // procedural style

Regards

Tom Tom
  • 3,680
  • 5
  • 35
  • 40