Welcome Guest, Not a member yet? Register   Sign In
encoding problam with ajax
#1

[eluser]A.M.F[/eluser]
hello everyone

i a working on a comment form and i am sending the form with ajax (jQuery) and i am using the plugin ajaxForm.

so i have this ajax code:
Code:
[removed]
   $(document).ready(function() {

      <!-- sending the comment form -->
      $('#commentSend').ajaxForm(function(data) {
         alert(data); //here i am just validating that it sends
      });

   });
[removed]

i am using a simple HTML form, and in my controller i am just checking the fields and save them.
everything works fine expets when i am not writing the comment in english.
when i write it in other characters it encodes it to different thing, and in the DB it looks like that:
Quote:סכע

i added this:
Code:
header('Content-Type: text/html; charset=windows-1255');
to my controller but it still doesn't help.

can anyone help me?


Messages In This Thread
encoding problam with ajax - by El Forum - 10-06-2008, 10:42 AM
encoding problam with ajax - by El Forum - 10-06-2008, 11:48 PM
encoding problam with ajax - by El Forum - 10-07-2008, 12:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB