3 Votes Vote

Send parameters to a php file in different language

Posted by topdog 583 days ago Questions| php language data All

Hi all,

I am querying a php script using js with following func call:

$.post("http://localhost/abc/create.php",{
        name:data
    } ,function(data){
        alert(data);
    });

Now this name parameter can be in any language, eg: english, hindi etc.. my code is working fine for english. But it is not working for hindi. When i am sending the request with adding name in the post parameter, the name is sent in a html encoded manner. Is there a way i can send my whole name properly and without any data loss.

Please suggest.. thanks.

Originally asked by: mudit on Stack Overflow

Discuss Bury


Who Voted for this Question