<script>
function Str2Unicode(str){
var arr = new Array();
for(var i=0;i<str.length;i++){
arr[i]="&#" + str.charCodeAt(i) + ";";
}
return(arr.toString().replace(/,/g,""));
}
window.onload=function()
{
document.getElementById('1').onclick=function()
{
var para=Str2Unicode(event.srcElement.innerText);
location=event.srcElement.href.toString()+'?para='+para
}
}
</script>
<body>
<a href="post.php" id="1">请点击</a>
</body>
function Str2Unicode(str){
var arr = new Array();
for(var i=0;i<str.length;i++){
arr[i]="&#" + str.charCodeAt(i) + ";";
}
return(arr.toString().replace(/,/g,""));
}
window.onload=function()
{
document.getElementById('1').onclick=function()
{
var para=Str2Unicode(event.srcElement.innerText);
location=event.srcElement.href.toString()+'?para='+para
}
}
</script>
<body>
<a href="post.php" id="1">请点击</a>
</body>
$str = "TTL全天候自动聚焦";
$str = preg_replace("|&#([0-9]{1,5});|", "\".u2utf82gb(\\1).\"", $str);
$str = "\$str=\"$str\";";eval($str);
echo $str;function u2utf82gb($c){
$str="";
if ($c < 0x80) {
$str.=$c;
} else if ($c < 0x800) {
$str.=chr(0xC0 | $c>>6);
$str.=chr(0x80 | $c & 0x3F);
} else if ($c < 0x10000) {
$str.=chr(0xE0 | $c>>12);
$str.=chr(0x80 | $c>>6 & 0x3F);
$str.=chr(0x80 | $c & 0x3F);
} else if ($c < 0x200000) {
$str.=chr(0xF0 | $c>>18);
$str.=chr(0x80 | $c>>12 & 0x3F);
$str.=chr(0x80 | $c>>6 & 0x3F);
$str.=chr(0x80 | $c & 0x3F);
}
return iconv('UTF-8', 'GB2312', $str);
}
?>
??????????????不知道这能成否????
<?php
echo("<body onload='document.all.mytd.innerText=decodeURI(window.location.href.split(\"=\")[1])'><table><tr><td id=mytd></td></tr></table>");
?>