リンクにencodeURIComponentを与える必要があります。この質問は、回答に関連していますPHP variable error in unicode。私を助けてください。他の質問でリンクにencodeURIComponentを与える方法
<?php
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
$NewValue="";
if(!empty($_GET['NewValue'])){
echo $NewValue=$_GET['NewValue'];//this variable is the problem;
}
$Value="நன்றி";
?>
<a href="test1.php?NewValue=<?php echo $Value;?>">Click here</a>
</body>
</html>
私は私はあなたが求めているもの.. 'urlencode'を理解したことをわからないんだけど? – Federkun
ここを参照http://stackoverflow.com/questions/36533008/php-variable-error-in-unicode/36533094#36533094彼らは、Unicode変数値を取得するためにencodeURIComponentについて説明しました。したがって、ここでも同じUnicode変数が使用されます。ですから、encodeURIComponentを必要に応じて使用するかどうかは –
ですので、 'encodeURIComponent'のPHPに相当するものを求めていますか? – Federkun