开发者

How to convert string from encoding codes to charactes?

开发者 https://www.devze.com 2023-04-12 22:33 出处:网络
I have a text of strings that looks like: %D0%A1%D1%82%D1%80%D0%BE%D0%BA%D0%B0 How can I convert it to actual characters?

I have a text of strings that looks like:

%D0%A1%D1%82%D1%80%D0%BE%D0%BA%D0%B0

How can I convert it to actual characters? If I'm unders开发者_运维知识库tand it right it's UTF char codes.


It is URL-encoded:

var s = System.Web.HttpUtility.UrlDecode("%D0%A1%D1%82%D1%80%D0%BE%D0%BA%D0%B0");

Produces:

"Строка"

Which is Russian for "row" or "string", I think.


See the accepted answer in this post, you just need to change their "-" to your "%"

0

精彩评论

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

关注公众号