Problem with urldecode(), maybe encoding problem |
[eluser]vadimyer[/eluser]
Hi there. First, I have enabled query strings and a search function. Search string passes to the "searchterm" variable and when I pass it through the form, it works fine and looks like: http://local/home/search/?searchterm=testtesttest Okay, now when I input some cyrillic string in a search form, it works fine as well, the URI would be for example: http://local/home/search/?searchterm=привет (in chrome) or http://local/home/search/?searchterm=������ (in IE, Opera etc.) Two above cases work fine, BUT WHEN I enter the CYRILLIC search string directly from the address bar (for example, in Opera or IE) it doesn't wanna search anything. $_GET['searchterm'] is empty, and as for QUERY_STRING, it is something like searchterm=������ (all data from profiler). I urldecode my string from the controller, but it somehow doesn't work. I also tried some iconv() cases, from what I've googled, but they also didn't work. So the question is why all other browsers except chrome doesn't retrieve CYRILLIC $_GET variable from the address bar if it was entered from there? Passing through the form everything works fine. Thanks in advance, guys. Hope for you help. |
Messages In This Thread |
Problem with urldecode(), maybe encoding problem - by El Forum - 07-02-2011, 04:09 AM
Problem with urldecode(), maybe encoding problem - by El Forum - 07-02-2011, 04:11 AM
Problem with urldecode(), maybe encoding problem - by El Forum - 07-09-2011, 12:36 PM
Problem with urldecode(), maybe encoding problem - by El Forum - 07-09-2011, 12:40 PM
Problem with urldecode(), maybe encoding problem - by El Forum - 07-09-2011, 12:42 PM
Problem with urldecode(), maybe encoding problem - by El Forum - 07-09-2011, 12:45 PM
Problem with urldecode(), maybe encoding problem - by El Forum - 07-09-2011, 12:47 PM
Problem with urldecode(), maybe encoding problem - by El Forum - 07-09-2011, 12:50 PM
|