Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Decoding url

Reply
Thread Tools

Decoding url

 
 
HP
Guest
Posts: n/a
 
      01-12-2005
hi
In my search page, search terms follow by the ? mark. but the problem is
that the term is encoded in the following format:
http://domain/search.aspx?%d8%a8%d9%...a7%d8%b4%d8%aa
how can I convert it to original characters so that I be able to process it?

my page character set is utf-8.
thanks a lot


 
Reply With Quote
 
 
 
 
MWells
Guest
Posts: n/a
 
      01-12-2005
I'm useless without VS.NET and Ctrl+J at my fingertips; it's either...

Server.DecodeUrl ( your url )

or

Server.UrlDecode ( your url )


"HP" <> wrote in message
news:...
> hi
> In my search page, search terms follow by the ? mark. but the problem is
> that the term is encoded in the following format:
> http://domain/search.aspx?%d8%a8%d9%...a7%d8%b4%d8%aa
> how can I convert it to original characters so that I be able to process

it?
>
> my page character set is utf-8.
> thanks a lot
>
>



 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      01-12-2005
It's Server.UrlDecode (your URL)

http://msdn.microsoft.com/library/de...codeTopic1.asp

Its counterpart is Server.UrlEncode(your URL)
http://msdn.microsoft.com/library/de...codetopic1.asp




Juan T. Llibre
ASP.NET MVP
===========
"MWells" <outbound__at_sygnal.com> wrote in message
news:ef9uNCO%...
> I'm useless without VS.NET and Ctrl+J at my fingertips; it's either...
>
> Server.DecodeUrl ( your url )
>
> or
>
> Server.UrlDecode ( your url )
>
>
> "HP" <> wrote in message
> news:...
>> hi
>> In my search page, search terms follow by the ? mark. but the problem is
>> that the term is encoded in the following format:
>> http://domain/search.aspx?%d8%a8%d9%...a7%d8%b4%d8%aa
>> how can I convert it to original characters so that I be able to process

> it?
>>
>> my page character set is utf-8.
>> thanks a lot
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
URL decoding/encoding problem flyingco C Programming 4 11-27-2006 08:50 AM
Efficient URL-decoding. Peter Jansson C++ 5 06-19-2006 11:26 AM
URL Character Decoding Kirk McDonald Python 4 01-30-2006 04:11 AM
Query parameters, Javascript and URL decoding issue R L Vandaveer ASP .Net 0 12-22-2005 04:48 PM
URL Decoding Issue --- HELP! Ron Clabo ASP .Net 3 04-28-2005 07:36 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57