Uri.EscapeDataString weirdness

后端 未结 1 1745
自闭症患者
自闭症患者 2021-01-05 16:34

Why does EscapeDataString behave differently between .NET 4 and 4.5? The outputs are

  • Uri.EscapeDataString(\"-_.!~*\'()\") => \"-_.!~*\'()\"<

相关标签:
1条回答
  • 2021-01-05 16:34

    A lot of changes has been done in 4.5 comparing to 4.0 in terms of system functions and how it behaves. U can have a look at this thread

    Why does Uri.EscapeDataString return a different result on my CI server compared to my development machine?

    or

    U can directly go to the following link

    http://msdn.microsoft.com/en-us/library/hh367887(v=vs.110).aspx

    All this has been with the input from the users around the world.

    0 讨论(0)
提交回复
热议问题