Jump to content
php.lv forumi

AJAX , UTF-8


Recommended Posts

Man ir tāda problēma, ka nododot parametru caur ajax, kas ir ar garumzīmēm, uz IE viņš garumzīmes noņem nost.

Kas tur par vainu?

...

var url="meklet.php";

var url=url+"?parametrs="+parametrs;

url=url+"&sid="+ new Date().getTime();

 

xmlHttp444.onreadystatechange=f444;

xmlHttp444.open("POST",url,true);

xmlHttp444.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");

xmlHttp444.send(url);

....

 

meklet.php skripts:

echo "parametrs".$_REQUEST["parametrs"];

Link to post
Share on other sites
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...