Numbers and Percentage in string C# MVC

Asked

Viewed 114 times

2

My string is not coming with strange characters, it is coming with numbers and percentage. Example:

"[email protected]" 

stays

"teste%40test.com"

or

"fictício" 

stays

"fict%C3%ADcio"
  • From where? Can you explain better?

  • This is the escape used in the query string or Forms. You have to unescape the string, usually this is done automatically.

  • Valder, you can post your code, preferably at the point where you retrieve and/or print the string. If possible, take advantage and give more details of the problem. With this, your question will be answered more quickly.

1 answer

0


I managed to solve using

Server.UrlDecode(minhaString);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.