使用什么PHP函数来转换
%25CE%2592%25CE%2595%25CE%259D%25CE%2596%25CE%2599%25CE%259D%25CE%2597
使用PHP实际的字符串?
实际字符串是用希腊字符书写的,它是“ΒΕΝΖΙΝΗ”
答案 0 :(得分:0)
你的字符串被编码两次。
您可以使用rawurldecode
解码它:
$str = rawurldecode('%25CE%2592%25CE%2595%25CE%259D%25CE%2596%25CE%2599%25CE%259D%25CE%2597');
// $str = "%CE%92%CE%95%CE%9D%CE%96%CE%99%CE%9D%CE%97"
$str = rawurldecode($str);
// $str = "ΒΕΝΖΙΝΗ"