Fork me on GitHub

Ajax and my Charset issue  Bottom

  • Hi,

    I am using Windows-1256 as a charset in my Zikula 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 have to change the page encoding to UTF-8 to view the text although when i was using the normal submit things were smooth.

    I have searched in the net and found some people talking about adding the parameter CHARSET to the javascript tag. When I looked into the pnajaxheader function in Zikula I found out that this paramter is not supported yet then I had to add it manually. Yet, 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

This list is based on users active over the last 60 minutes.