English 中文(简体)
将日文字符传递到 PP 文件
原标题:Passing Japanese Character to PhP file

我制作一个简单的博士方案

<?php

echo $_GET[ ID ];
?>

然后我打电话给

http://localhost/testGetID/?ID=%E6%AD%A4%E5%8E%9F%E7%90%86%E6%98%AF%E5%9C%A8

This is what I got: 此原ç†æ˜¯åœ¨

我该怎么做呢?我展示的是中国人的实际人物?顺便说一句,中国人人物将是我的数据库的识别号。

最佳回答
  1. 将此行添加到您的 区域 区域

  2. 使用 urldecode () mb_convert_encoding () 函数

  3. 将 ID 编码为 base64_encode () ,然后将其解码为 base64_decode ()

问题回答

你能试试这个吗?

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Test page</title>
</head>
Your php code/chinese characters go here.
<body>
</body>
</html>




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签