Dear Sir,
i added chracter set=utf-8 to both of my php file. but still am getting the same problem i.e i can't see my arabic characters. so can you tell me the way or code to set character set in javascript file for handling ajax request for sending data to php file .
[code]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
Dear Sir,
According your .zip files i used these files.in your file i can get arabic characters from arabic.php using ajax to arabic.html and inthat case there is no problem. but when i want to send arabic chracter form arabic.html to arabic.php using ajax then i get the output as 9 2 3 ? ? ? at arabic.html file. this is requirement for me. so please can you help me to send arabic characters from arabic.html to arabic.php according to your example?
please try to send a reply to me.
Dear Sir,
Actually your code works very well if i type english characters in the input box as input for the text box . but if i type arabic character then it's output comes as ???.
i.e if i type س س س س س then it its comes as ? ? ? ? ?. please try to check your code with my example. i am facing this problem.
Please reply me.i need solution for this problem.
Again thanks for your cooperation.
Regards,
Faruk Chowdhury.
Last edited by farukcse; November 15th, 2007 at 02:35 PM.
I tested my example on multiple machines, servers, and OSs. It works. So, that means that it is something on your end. Possibly the browser you are using. Have you tried using IE, Firefox, and Safari?
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Dear Sir,
Have you checked with arabic characters as input? i.e. send س سص فخ to test.php file and get the output at arabic.html.
i tested with IE,mozila . this is same problem i.e i got the error output as a ? ? ? for input text arabic characters.
Dear Sir,
Many Many thanx for your cooperation. Actualy your code is working using this code
[code]
AJAX.get('test.php?x=' + encodeURIComponent(this.value), getUpdate).
now this is working well for arabic characters.
Again thanx to you for helping me to solve this problem.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.