Click here to Skip to main content
15,915,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: URL escape issue Pin
leppie12-Aug-08 2:29
leppie12-Aug-08 2:29 
GeneralRe: URL escape issue Pin
George_George12-Aug-08 2:36
George_George12-Aug-08 2:36 
GeneralRe: URL escape issue Pin
leppie12-Aug-08 2:38
leppie12-Aug-08 2:38 
GeneralRe: URL escape issue Pin
George_George12-Aug-08 3:00
George_George12-Aug-08 3:00 
GeneralRe: URL escape issue Pin
leppie12-Aug-08 3:11
leppie12-Aug-08 3:11 
GeneralRe: URL escape issue Pin
George_George12-Aug-08 3:19
George_George12-Aug-08 3:19 
GeneralRe: URL escape issue Pin
leppie12-Aug-08 3:22
leppie12-Aug-08 3:22 
GeneralRe: URL escape issue Pin
George_George12-Aug-08 16:34
George_George12-Aug-08 16:34 
Thanks leppie,


I have tested that for an escaped (encode) string, if we escape (encode) again, the string will be longer each time we encode.

So, even if the string is not the same, you still can not make conclusion whether the original string is encoded or not. Here is my code. Any ideas?

class Program
{
    static void Main(string[] args)
    {
        string abc = HttpUtility.UrlEncode("http://abc def");
        abc = HttpUtility.UrlEncode(abc);
        abc = HttpUtility.UrlEncode(abc);
        abc = HttpUtility.UrlEncode(abc);
        abc = HttpUtility.UrlEncode(abc);

        return;
    }
}



regards,
George
GeneralRe: URL escape issue Pin
leppie12-Aug-08 23:34
leppie12-Aug-08 23:34 
GeneralRe: URL escape issue Pin
George_George13-Aug-08 1:18
George_George13-Aug-08 1:18 
GeneralRe: URL escape issue Pin
Manas Bhardwaj12-Aug-08 3:17
professionalManas Bhardwaj12-Aug-08 3:17 
GeneralRe: URL escape issue Pin
George_George12-Aug-08 3:20
George_George12-Aug-08 3:20 
Questioniterate over all the forms in a project Pin
mrcooll12-Aug-08 1:08
mrcooll12-Aug-08 1:08 
AnswerRe: iterate over all the forms in a project Pin
stancrm12-Aug-08 1:18
stancrm12-Aug-08 1:18 
GeneralRe: iterate over all the forms in a project Pin
mrcooll12-Aug-08 1:25
mrcooll12-Aug-08 1:25 
GeneralRe: iterate over all the forms in a project Pin
Not Active12-Aug-08 2:01
mentorNot Active12-Aug-08 2:01 
Question[help] How manage Shapefile: shp, shx and dbf Pin
Manuel Salvatori12-Aug-08 0:52
Manuel Salvatori12-Aug-08 0:52 
QuestionCan I create addin for Outlook2002 in VS2005 Pin
wasimsharp12-Aug-08 0:47
wasimsharp12-Aug-08 0:47 
AnswerRe: Can I create addin for Outlook2002 in VS2005 Pin
Mogaambo12-Aug-08 1:00
Mogaambo12-Aug-08 1:00 
GeneralRe: Can I create addin for Outlook2002 in VS2005 Pin
wasimsharp12-Aug-08 1:09
wasimsharp12-Aug-08 1:09 
QuestionSQL Pin
ellllllllie12-Aug-08 0:31
ellllllllie12-Aug-08 0:31 
AnswerRe: SQL Pin
Christian Graus12-Aug-08 0:34
protectorChristian Graus12-Aug-08 0:34 
QuestionSerial BT Connection PIN Pin
beat.v11-Aug-08 23:47
beat.v11-Aug-08 23:47 
QuestionPDF using Acrobat Distiller Pin
Zuhair Rizvi11-Aug-08 23:23
Zuhair Rizvi11-Aug-08 23:23 
AnswerRe: PDF using Acrobat Distiller Pin
Christian Graus12-Aug-08 0:35
protectorChristian Graus12-Aug-08 0:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.