0

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 %CE%EB%E5%E3+%DF%EA%F3%F8%EA%E8%ED using C#?

1
  • If it's any help searching in the library, the process is called "urlencoding" or "percent encoding". en.wikipedia.org/wiki/Urlencoding Commented May 3, 2010 at 17:51

2 Answers 2

1

Like this:

Uri.EscapeDataString(str)

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

Sign up to request clarification or add additional context in comments.

2 Comments

And BTW what is result encoding of such operation - UTF-8 (I work with russian and other such lancuages)?
1

HttpUtility.UrlEncode

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.