Jump to content

Php With Ajax Arabic


Manhag

Recommended Posts

i used this example to create a submit form to database

http://www.simonerod...incipianti.html

 

input in arabic like مصر

the output appears like مصر||مصر||بدون صو

 

how can i enable arabic in ajax

 

By "the output" do you mean once it's outputted back to the screen from the database? Or that's how it's showing in the database?

 

What is your table collation? What charset encoding are you using within your application?

 

EDIT: Also, are you specifying a Content-Type (contentType in jQuery) during the AJAX processing? In jQuery, the default is UTF-8.

Edited by mrMarcus
Link to comment
Share on other sites

output before storing in database

 

I don't follow. So, when you're typing into the form?

 

Your process should be as follows: 1. enter data (Arabic) into form, 2. submit form; AJAX call ensues, 3. data is sent for processing and inserted into database.

 

At what stage are you experiencing the issue with encoding?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.