Handling invalid URL encoding

Hi,


Quick question about Sparkle's handling of URLs with invalid encoding.  If the server receives a URL such as :

http://localhost/sparkletest/search?code=ABC%C2%A

then Sparkle errors with :


Exception Class: EEncodingError 
Message: No mapping for the Unicode character exists in the target multi-byte code page


This occurs before the ProcessRequest method is called.  Just wondered if there's a way of trapping this scenario and/or presenting a more user friendly error message?

Thanks,
Jonathan


That should have been fixed in TMS Sparkle version 2.3.

What is the version you are using?

Hi Wagner, I'm using version 2.4 released July 2017.

Ok, I see now that the issue is that your URL contains just wrong percent encoding. In this case, the server will response with an error indeed.