views:

62

answers:

1

hi guys try this code it works very smooth

Html

<html><body>
<div id="container"></div>
</body></html>

Jquery

$('<div id="footer"><p>جميع الحقوق محفوظه لشركة</p></div>').insertAfter('#container');

but the problem in Arabic letters its look like that ������������������������

+1  A: 

You should probably specify an encoding on your page to get around issues like this. Here's a page from the W3C on specifying character encodings:

http://www.w3.org/TR/html4/charset.html#h-5.2.2

You should be fine with UTF-8, which you can specify by putting the following tag in your <head> tag:

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
Faisal
Right, the people who've commented on your answer are absolutely correct, too. :)
Faisal
tried all above this is this the resultافرئٍسٍةافإشترا�اتصف بلااف�رنغ
Mossad osamy