Good day. Faced a problem in the encoding UrlEncode. I encoded Russian characters using UrlEncode and output the entire link to Debug:

enter image description here

It looks great, but when I click on the json link, it's empty in Visual Studio itself, and on any browser, json is full. enter image description here

Why in Visual Studio returns an empty json can not understand?

  • And why are you doing UrlEncode only for part of the string? You do not need to encode the entire line? - VladD
  • In that part of the line there are two problems when I do UrlEncode, it encodes the text and instead of these spaces puts pluses. In the rest of the lines there is no point in coding as there are no spaces in them and they are taken as ready-made lines. - D.Dante
  • Hm The fact that there are no problems does not mean that the part does not need to be encoded. Try to code everything together though. - VladD
  • I encoded and ended up with this line: http% 3A% 2F% 2Fmagtu.ru% 2Fmodules% 2Fmod_reiting_bel% 2Fmobile2.php% 3Faction% 3Dget_reiting_abit% 26fio% 3D% D0% 9A% D0% B0% D0% B7% D0% B0 % D0% BD% D1% 86% D0% B5% D0% B2% D0% B0 +% D0% 92% D0% B8% D0% BA% D1% 82% D0% BE% D1% 80% D0% B8% D1 % 8F +% D0% 98% D0% B3% D0% BE% D1% 80% D0% B5% D0% B2% D0% BD% D0% B0% 26spec_kod% 3D22.03.020 - D.Dante
  • I have this question. Why does he in Visual Studio url-address returns the text "Kazantseva + Victoria + Igorevna", and does not show in this form "% D0% 9A% D0% B0% D0% B7% D0% B0% D0% BD% D1% 86% D0% B5% D0% B2% D0% B0 +% D0% 92% D0% B8% D0% BA% D1% 82% D0% BE% D1% 80% D0% B8% D1% 8F +% D0% 98% D0% B3% D0% BE% D1% 80% D0% B5% D0% B2% D0% BD% D0% B0 "? - D.Dante

0