开发者

How to turn string into readable by php server way? (C#)

开发者 https://www.devze.com 2022-12-28 19:35 出处:网络
I know that my server on real form submit turns %CE%EB%E5%E3+%DF%EA%F3%F8%EA%E8%ED into Олег Якушкин . How to peform string transfer fromОлег Якушкин into 开发者_Go百科 %CE%EB%E5

I know that my server on real form submit turns %CE%EB%E5%E3+%DF%EA%F3%F8%EA%E8%ED into Олег Якушкин . How to peform string transfer from Олег Якушкин into 开发者_Go百科 %CE%EB%E5%E3+%DF%EA%F3%F8%EA%E8%ED using C#?


Like this:

Uri.EscapeDataString(str)

Note that this will encode a space character as %20, not +. However, PHP should handle that fine.


HttpUtility.UrlEncode

0

精彩评论

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

关注公众号