gpt4 book ai didi

php - 如何使用 PHP 读取 unicode url?

转载 作者:行者123 更新时间:2023-12-04 03:19:02 33 4
gpt4 key购买 nike

我有一个 unicode 网址:\test.php?sText=Московский

我想使用 $_Get 函数来处理 sText 的值。我的 test.php 代码是:

<?php
$sVar = $_GET['sText'];

echo "Variable = $sVar";
?>

问题是上面的内容是这样的:Variable = ????????????

我需要做什么?

最佳答案

这对我来说很好:

$sVar = $_GET['sText'];

echo urldecode($sVar);

关于php - 如何使用 PHP 读取 unicode url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1859038/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com