Jump to content

$_get With Japanese Characters


Kameloh

Recommended Posts

I'm having problems with $_GET for Japanese Characters.Example: Does Not Work: when clicking from a linkhttp://www.nabyn.com/gallery.php?tag={...#12356;いWorks: a <form method="get"> submithttp://www.nabyn.com/gallery.php?tag=%26%2...B%26%2312356%3BEchoing the variable from a link echoes gibberish wheras the second one echoes the values correctly.

<?php$tag = trim(addslashes($_GET['tag']));echo 'Debug: '.$tag;// <-- Other Code Checking Here?>

Is there some special encoding that I have to do for $_GET variables to behave like <form method="get">?Thank you!

Link to comment
Share on other sites

Ah thank you - that works with my code.The only problem I have now is that the URLs themselves are long and ugly.. but I'll see what I can do with that.Thank you again :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...