次のコードがあります。
var words = new Object();
$("li.words").each(function(){
var thisId = $(this).attr("id");
words[thisId] = $(this).children('input#word').val();
});
id #word の入力には、ヘブライ語 (つまり、UTF-8 文字) の単語が含まれています。私が使用する場合:
alert($.param(words));
単語は、ヘブライ文字ではなく%D7%9E%D7%AA%D7%A7%D7%93%D7%9E%のようになります。
ヘブライ語の単語を次のように警告しようとすると、これは奇妙です。
alert('עברית');
それはうまく動作します。変数を使用してアラートを出したとしても ($.param なしで)。