473,508 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Decode URL string

As part of URL I have ie:

www.website.com?test=%F8%E5%C6%D8%C5

Requesting the querystring and displaying the content on web I just
get a bunch of squares instead of the special Danish characters that I
expect. But I don't know how to decode them properly. Do you?

Any help or pointer in the right direction is greatly appreciated -
thanks in advance!
Kind regards /Snedker
Sep 1 '08 #1
7 1463
Snedker wrote:
As part of URL I have ie:

www.website.com?test=%F8%E5%C6%D8%C5

Requesting the querystring and displaying the content on web I just
get a bunch of squares instead of the special Danish characters that I
expect. But I don't know how to decode them properly. Do you?

Any help or pointer in the right direction is greatly appreciated -
thanks in advance!
Kind regards /Snedker
How are you trying to decode them?
Sep 1 '08 #2
On 1 Sep., 14:14, Florian Paulus <florian.pau...@sc-cis.dewrote:
Snedker wrote:
As part of URL I have ie:
www.website.com?test=%F8%E5%C6%D8%C5
Requesting the querystring and displaying the content on web I just
get a bunch of squares instead of the special Danish characters that I
expect. But I don't know how to decode them properly. Do you?
Any help or pointer in the right direction is greatly appreciated -
thanks in advance!
Kind regards /Snedker

How are you trying to decode them?
Using System.Web.SystemHttpUtility.UrlDecode is what I've tried, but
not with the result of "squares"...

Regards /Snedker
Sep 1 '08 #3
On 1 Sep., 14:32, Snedker <Morten.Sned...@gmail.comwrote:
On 1 Sep., 14:14, Florian Paulus <florian.pau...@sc-cis.dewrote:
Snedker wrote:
As part of URL I have ie:
>www.website.com?test=%F8%E5%C6%D8%C5
Requesting the querystring and displaying the content on web I just
get a bunch of squares instead of the special Danish characters that I
expect. But I don't know how to decode them properly. Do you?
Any help or pointer in the right direction is greatly appreciated -
thanks in advance!
Kind regards /Snedker
How are you trying to decode them?

Using System.Web.SystemHttpUtility.UrlDecode is what I've tried, but
not with the result of "squares"...

Regards /Snedker
...but WITH the result of squares, that is... :-)
/snedker
Sep 1 '08 #4
Snedker wrote:
On 1 Sep., 14:32, Snedker <Morten.Sned...@gmail.comwrote:
>On 1 Sep., 14:14, Florian Paulus <florian.pau...@sc-cis.dewrote:
>>Snedker wrote:
As part of URL I have ie:
www.website.com?test=%F8%E5%C6%D8%C5
Requesting the querystring and displaying the content on web I just
get a bunch of squares instead of the special Danish characters that I
expect. But I don't know how to decode them properly. Do you?
Any help or pointer in the right direction is greatly appreciated -
thanks in advance!
Kind regards /Snedker
How are you trying to decode them?
Using System.Web.SystemHttpUtility.UrlDecode is what I've tried, but
not with the result of "squares"...

Regards /Snedker

..but WITH the result of squares, that is... :-)
/snedker
Did you try to set the default encodings to utf-8 in your web.config?

<configuration>
<system.web>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8" />
</system.web>
</configuration>
Sep 1 '08 #5
On 1 Sep., 14:54, Florian Paulus <florian.pau...@sc-cis.dewrote:
Snedker wrote:
On 1 Sep., 14:32, Snedker <Morten.Sned...@gmail.comwrote:
On 1 Sep., 14:14, Florian Paulus <florian.pau...@sc-cis.dewrote:
>Snedker wrote:
As part of URL I have ie:
www.website.com?test=%F8%E5%C6%D8%C5
Requesting the querystring and displaying the content on web I just
get a bunch of squares instead of the special Danish characters thatI
expect. But I don't know how to decode them properly. Do you?
Any help or pointer in the right direction is greatly appreciated -
thanks in advance!
Kind regards /Snedker
How are you trying to decode them?
Using System.Web.SystemHttpUtility.UrlDecode is what I've tried, but
not with the result of "squares"...
Regards /Snedker
..but WITH the result of squares, that is... :-)
/snedker

Did you try to set the default encodings to utf-8 in your web.config?

<configuration>
* * <system.web>
* * * *<globalization
* * * * * requestEncoding="utf-8"
* * * * * responseEncoding="utf-8" />
* * </system.web>
</configuration>- Skjul tekst i anførselstegn -

- Vis tekst i anførselstegn -
Those exact settings are already set.

Thx for input and efforts!

Regards /Snedker
Sep 1 '08 #6
On 1 Sep., 15:38, Snedker <Morten.Sned...@gmail.comwrote:
On 1 Sep., 14:54, Florian Paulus <florian.pau...@sc-cis.dewrote:


Snedker wrote:
On 1 Sep., 14:32, Snedker <Morten.Sned...@gmail.comwrote:
>On 1 Sep., 14:14, Florian Paulus <florian.pau...@sc-cis.dewrote:
>>Snedker wrote:
>>>As part of URL I have ie:
>>>>www.website.com?test=%F8%E5%C6%D8%C5
>>>Requesting the querystring and displaying the content on web I just
>>>get a bunch of squares instead of the special Danish characters that I
>>>expect. But I don't know how to decode them properly. Do you?
>>>Any help or pointer in the right direction is greatly appreciated -
>>>thanks in advance!
>>>Kind regards /Snedker
>>How are you trying to decode them?
>Using System.Web.SystemHttpUtility.UrlDecode is what I've tried, but
>not with the result of "squares"...
>Regards /Snedker
..but WITH the result of squares, that is... :-)
/snedker
Did you try to set the default encodings to utf-8 in your web.config?
<configuration>
* * <system.web>
* * * *<globalization
* * * * * requestEncoding="utf-8"
* * * * * responseEncoding="utf-8" />
* * </system.web>
</configuration>- Skjul tekst i anførselstegn -
- Vis tekst i anførselstegn -

Those exact settings are already set.

Thx for input and efforts!
Hope that last sentence wasn't read as "problem solved"... :-)

regards /snedker
Sep 1 '08 #7
Hi Snedker,

Would you try System.Web.HttpUtility.UrlDecode?

--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk

"Snedker" <Mo************@gmail.comwrote in message
news:0f**********************************@f36g2000 hsa.googlegroups.com...
On 1 Sep., 14:14, Florian Paulus <florian.pau...@sc-cis.dewrote:
>Snedker wrote:
As part of URL I have ie:
>www.website.com?test=%F8%E5%C6%D8%C5
Requesting the querystring and displaying the content on web I just
get a bunch of squares instead of the special Danish characters that I
expect. But I don't know how to decode them properly. Do you?
Any help or pointer in the right direction is greatly appreciated -
thanks in advance!
Kind regards /Snedker

How are you trying to decode them?

Using System.Web.SystemHttpUtility.UrlDecode is what I've tried, but
not with the result of "squares"...

Regards /Snedker
Sep 1 '08 #8

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

Similar topics

0
1501
by: Simon | last post by:
Newbie alert! I have a webform listbox with what I am sure is a common requirement. I wish to store a list of values but display a "translation" or decode. An example would be 1, 2, 3, 4 and One,...
3
4088
by: Guoqi Zheng | last post by:
Dear sir, I need to decode base64 encoded email. I used below function but it does not work correctly, especially when I need to decode some Characters like Chinese, Can some one point out...
2
10258
by: aurora | last post by:
I have some unicode string with some characters encode using python notation like '\n' for LF. I need to convert that to the actual LF character. There is a 'unicode_escape' codec that seems to...
2
3393
by: rsd | last post by:
Hi, I'm trying get Samsung YH-920 mp3 player to work with Debian GNU/Linux. To do that I need to run http://www.paul.sladen.org/toys/samsung-yh-925/yh-925-db-0.1.py script, the idea behind the...
4
5358
by: Oleg Parashchenko | last post by:
Hello, I'm working on an unicode-aware application. I like to use "print" to debug programs, but in this case it was nightmare. The most popular result of "print" was: UnicodeDecodeError:...
3
4522
by: Tim Arnold | last post by:
Hi, I'm beginning to understand the encode/decode string methods, but I'd like confirmation that I'm still thinking in the right direction: I have a file of latin1 encoded text. Let's say I put...
15
2281
by: glacier | last post by:
I use chinese charactors as an example here. "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" My first question is : what strategy does 'decode' use to tell the way to seperate the words. I mean since s1 is...
1
3551
by: Eric S. Johansson | last post by:
I'm having a problem (Python 2.4) converting strings with random 8-bit characters into an escape form which is 7-bit clean for storage in a database. Here's an example: body =...
3
3769
by: d-fan | last post by:
void decodebio( unsigned char *encbuf, unsigned char * decbuf, int destbuf ) { /* Read Base64 encoded data from standard input and write the decoded data to standard output: */ BIO...
1
5755
by: anonymous | last post by:
1 Objective to write little programs to help me learn German. See code after numbered comments. //Thanks in advance for any direction or suggestions. tk 2 Want keyboard answer input, for...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.