I use blazor with .net core 3.0 to develop a website that allow to pass some parameters in URL.
The problem is whenever I pass a Vietnamese keyword in the URL, the blazor throw an inner exception that appears on Browser console.
Please be aware of that I cannot use Encode URL
to extract that information since the blazor throw exceptions by it-self before OnAfterRenderAsync
calling
Work
https://localhost:44316/?keyword=tieng viet
https://localhost:44316/?keyword=tieng%20viet
Not Work
https://localhost:44316/?keyword=tiếng việt
https://localhost:44316/?keyword=tiếng%20việt
https://localhost:44316/?keyword=ti%E1%BA%BFng%20vi%E1%BB%87t
How to reproduce:
- Just create a completely new blazor project with .net core 3.0.
- Then start the project and try with these urls.
=> Since I don't add any extra code here, the blazor should not throw any exceptions
Thanks for help!