Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search Box encoding characters


genata93

Recommended Posts

Posted

Hello,

I am writing an interesting module where you can add keywords for your products that are going to be placed on product_info.php. The keywords are going to be clickable and they will be redirecting to advanced_search_results.php. The thing is that the keywords are going to be in cyrillic characters. Can somebody help me how are the keywords encoded in the url so as the advanced_search_results.php gives the right results? I have tried with urlencode() and rawurlencode() but both are not encoding the keyword as needed.

 

E.g. if I write "Евгени" in the search-box the url goes like this:

advanced_search_result.php?keywords=%E5%E2%E3%E5%ED%E8&x=-1315&y=-206.

Posted

I have some progress here. I found out that this is Windows-1251 encoding but still don't have a clear idea how to convert a string to windows-1251 in the URL.

Posted

I solved this one, the function that outputs proper string for the url is urlencode($row);

Archived

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

×
×
  • Create New...