The following PHP code:
<?php
$s = "page.com?a=1¤t";
echo $s;
outputs the unexpected:
page.com?a=1¤t
Setting the file encoding to utf-8 didn't work. When I set $s
to "page.com?a=1&curre", the output is as expected.
I want to know if this is because in my project I have $url
, which needs to be appended with "¤tPage=1".
What is causing this problem?