开发者

diacritics in asp.net querystring collection

开发者 https://www.devze.com 2023-01-16 09:57 出处:网络
开发者_StackOverflow社区I\'m trying to get a value out of the querystring that has diacritics. The diacritics are encoded in utf-8 %uxxx format, and when I check Request.QueryString[\"name\"] they are
开发者_StackOverflow社区

I'm trying to get a value out of the querystring that has diacritics. The diacritics are encoded in utf-8 %uxxx format, and when I check Request.QueryString["name"] they are incorrectly decoded. However, if i check Request.RawUrl, they are there and correct.

I've tried adding

<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8"/>

but still have the issue.

Is there any solution to this issue short of parsing the RawUrl myself and correctly handling the diacritics?

0

精彩评论

暂无评论...
验证码 换一张
取 消