Jump to content

Recommended Posts

i used this example to create a submit form to database

http://www.simonerodriguez.com/form-submit-in-ajax-script-per-principianti.html

 

input in arabic like مصر

the output appears like %u0645%u0635%u0631||%u0645%u0635%u0631||%u0628%u062F%u0648%u0646 %u0635%u0648%u06

 

how can i enable arabic in ajax

Link to comment
https://forums.phpfreaks.com/topic/271085-php-with-ajax-arabic/
Share on other sites

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

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?

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.