I need to write a server side function to clear URL encoded strings.
Querystring example:
FirstName=John&LastName=B%F3th&Address=San+Endre+%FAt+12%2F14
When I pass this through HttpUtility.UrlDecode() , I get:
FirstName=John&LastName=B th&Address=San Endre t 12/14
The function from this SO post looks perfect, but expects decoded strings that already have accents:
RemoveDiacritics('Bรณth`) ==> 'Both'; RemoveDiacritics('San Endre รบt 12/14`) ==> 'San Endre ut 12/14';
How can I decode a url without getting all these characters?
I canโt do anything on the client side or change the way they enter my function.
source share