Jump to content

$_get With Japanese Characters


Kameloh
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...