I have used rawurlencode on a utf8 word. For example
$tit = 'தேனின் "வாசம்"';
$t = (rawurlencode($tit));
when I click the utf8 word ($t), I will be transferred to another page using .htaccess and I get the utf8 word using $_GET['word'];
The word displays as தேனினà¯_"வாசமà¯" not the actual word. How can I get the actual utf8 word. I have used the header charset=utf-8.
Output:
You're probably just not showing the data as UTF-8 and you're showing it as ISO-8859-1 or similar.
Did you use
rawurldecode($_GET['word']);
? And do you use UTF-8 encoding for your PHP file?Was my comment first, but should have been an answer:
magic_quotes
is off? Would be weird if it was still on in 2011. But you should check and dostripslashes
.