I've got the following code which converts unicode to the appropriate character e.g. When a user enters úsername into the browser %FAsername is returned to the code which then converts it back to úsername.
However when the browser encoding is set to UTF-8 the value passed to the code is %C3%BAsername which is then converted to úsername which is the wrong value expected for authentication. How can I modify the code to make it UTF-8 compatible?