Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Sign in to follow this  

How to modify USU5 PRO to accept Chinese characters in the URI

Recommended Posts

This post only describes how to modify USU5 PRO to accept Chinese characters in the URI.

If you have any other problems when using USU5 or USU5 PRO, please go to following topic.



File - /catalog/includes/modules/ultimate_seo_urls5/main/validator.php


Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) );


Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( urldecode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) ) );


Root Cause:

In Usu_Validator::validate() function, it will compare the 'incoming seo uri' and 'new seo uri', it will fail to go to desired page if thry are different. However, the encoded 'incoming seo uri' always different to decoded 'new seo uri' when URLs has Chinese. To solve this problem, you could simply add urldecode function when setting 'incoming seo uri'.



Robert Fisher - FWR Media



Thanks to Rob for kindly help

Share this post

Link to post
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
Sign in to follow this