473,320 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Decoding url

HP
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
Nov 19 '05 #1
2 1356
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" <hp*****@yahoo.com> wrote in message
news:34*************@individual.net...
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

Nov 19 '05 #2
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:ef****************@TK2MSFTNGP12.phx.gbl...
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" <hp*****@yahoo.com> wrote in message
news:34*************@individual.net...
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


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: steve | last post by:
Hi, I am opening a stream that is UTF encoded. I use fgetc to read the stream- which is binary safe. I add every character read to a string. But when I look at the stream, I see some...
1
by: Thomas Williams | last post by:
Hello everyone, my name is Tom W. And, I am new to the list, and have been using Python for about a year now. Anyway, I got a question! I am trying to decode MIME (base64) email from a POP3...
40
by: Peter Row | last post by:
Hi all, Here is my problem: I have a SQL Server 2000 DB with various NVarChar, NText fields in its tables. For some stupid reason the data was inserted into these fields in UTF8 encoding. ...
0
by: Johann Blake | last post by:
In my need to decode a JPEG 2000 file, I discovered like many that there was no functionality for this in the .NET Framework. Instead of forking out a pile of cash to do this, I came up with the...
5
by: Peter Jansson | last post by:
Hello group, The following code is an attempt to perform URL-decoding of URL-encoded string. Note that std::istringstream is used within the switch, within the loop. Three main issues have been...
14
by: BB | last post by:
Hello. i am trying to decode a block of (what i think is) base64 into text, and i have NO idea how to begin. I'm going to paste the whole string here, but i want to know the steps necessary to...
25
by: marcin.rzeznicki | last post by:
Hello everyone I've got a little problem with choosing the best decoding strategy for some nasty problem. I have to deal with very large files wich contain text encoded with various encodings....
9
by: KWSW | last post by:
Having settled the huffman encoding/decoding and channel modeling(thanks to the previous part on bitwise operation), the last part would be hamming encoding/decoding. Did some research as usual on...
0
by: Michele | last post by:
Hi there, I'm using a python script in conjunction with a JPype, to run java classes. So, here's the code: from jpype import * import os import random import math import sys
42
by: Santander | last post by:
how to decode HTML pages encoded like this: http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm Is there script that will do this automatically and generate normal fully...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.