Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

QueryString Parameters with french characters not decoding

$
0
0

I have a legacy application calling a ASP.NET Core API passing addresses as a querystring parameter. Sometimes these addresses contain French (fr-CA) characters. The application URL encodes the address and we end up with something like:

"123 DE L'%C9CUME" (instead of "123 DE L'ÉCUME")

The problem is inside the controller function I still see it as "123 DE L'%C9CUME" as it's not being decoded.

If I pass the string through 

System.Net.WebUtility.UrlDecode
, I end up with "123 DE L'�CUME".

I'm quite new to .NET Core so wondering if I'm missing a step like adding supported languages to the API?

Any help would be greatly appreciated!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>