So 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#?
views:
27answers:
2
+1
A:
Like this:
Uri.EscapeDataString(str)
Note that this will encode a space character as %20, not +. However, PHP should handle that fine.
SLaks
2010-05-03 17:52:23
And BTW what is result encoding of such operation - UTF-8 (I work with russian and other such lancuages)?
Blender
2010-05-13 22:35:24
[Yes, UTF8](http://msdn.microsoft.com/en-us/library/system.uri.escapedatastring.aspx)
SLaks
2010-05-13 23:09:40