0

I want to send a Hindi message from my custom php page. For this I have used a ajax request.

How to encode it in JavaScript before sending in ajax and decode it in php function?

EDIT

Here is my code :

...
var message = ''; // here I am getting content from form field dynamically
var ajaxBlockUrl = '/my.php?action=custom&mobile=999999999&message='+message;
Ajax.Request(ajaxBlockUrl, 
{
    parameters: {isAjax: 'true', form_key: FORM_KEY},
    onSuccess: function(response) 
    {
        //
    }
});
...

0 Answers0