开发者

jquery post work with hebrew (unicode) but not with spaces, get not working with hebrew but does spaces

开发者 https://www.devze.com 2022-12-22 16:20 出处:网络
i have tried load an开发者_如何学God hebrew didn\'t work for me so i changed my code to $.ajax({

i have tried load an开发者_如何学God hebrew didn't work for me so i changed my code to

    $.ajax({
        type: "post",
        url: "process-tb.asp",
        data: data,
        success: function(msg)

(partial code)

not knowing that post and get is the problem for my hebrew querystring. so know i can get my page to get the hebrew and english but no spaces are add to the text.

all pages are encoded to utf-8.

what is wrong with it?


i have fixed that with replacing spaces - so hebrew works with post and spaces are replaced

data = data.replace(/\s/g, "%20");
0

精彩评论

暂无评论...
验证码 换一张
取 消