> My default character set is utf8, should I use encodeURI when use ajax
> sending the data to server?
>
> for example
> $username = $('#username').val()
> $.ajax(
> {
> url:'xxx.php',
> data:{username:encodeURI($username)}
> ......

jQuery's ajax function will do that encoding for you when you pass an
object as 'data'.  If needed, you can disable that default behavior by
passing false for the 'processData' option.

Mike

Reply via email to