Jump to content

Ajax and my charset problem


fayez2

Recommended Posts

Hi,

 

I am using Windows-1256 as a charset in my site. I have implemented an AJAX application that submits and stores information in MYSQL. The problem is that when i try to view the information saved it becomes scrambled and i hve to change the page encoding to UTF-8 to view the text although when i was using the normal submit things were smooth.

 

I tried to put the parameter charset in the script tag for the javascript tag to force it to send the data as Windows1256 but it did not help!

 

Is there any way to make sure that the ajax script passes the data as the charset that I want or maybe there is a php function that will convert the text from its UTF-8 encoding to the encoding i want before displaying? or there could be something else that I can do!?

 

Thanks in advance

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.