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 7 1468
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?
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.Syst emHttpUtility.U rlDecode is what I've tried, but
not with the result of "squares".. .
Regards /Snedker
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.Syst emHttpUtility.U rlDecode is what I've tried, but
not with the result of "squares".. .
Regards /Snedker
...but WITH the result of squares, that is... :-)
/snedker
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.Syst emHttpUtility.U rlDecode 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?
<configuratio n>
<system.web>
<globalizatio n
requestEncoding ="utf-8"
responseEncodin g="utf-8" />
</system.web>
</configuration>
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.Syst emHttpUtility.U rlDecode 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?
<configuratio n>
* * <system.web>
* * * *<globalizatio n
* * * * * requestEncoding ="utf-8"
* * * * * responseEncodin g="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
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.Syst emHttpUtility.U rlDecode 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?
<configuratio n>
* * <system.web>
* * * *<globalizatio n
* * * * * requestEncoding ="utf-8"
* * * * * responseEncodin g="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
Hi Snedker,
Would you try System.Web.Http Utility.UrlDeco de?
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET http://sunali.com http://www.propeople.dk
"Snedker" <Mo************ @gmail.comwrote in message
news:0f******** *************** ***********@f36 g2000hsa.google groups.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.Syst emHttpUtility.U rlDecode is what I've tried, but
not with the result of "squares".. .
Regards /Snedker
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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, Two, Three, Four
I created
class ListBoxSpecial
{
public string Code;
|
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 what I did wrong here? Thanks.
|
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 suit my purpose.
>>> encoded = u'A\\nA'
>>> decoded = encoded.decode('unicode_escape')
>>> print len(decoded)
3
Note that both encoded and decoded are unicode string. I'm trying to use
|
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 script is described at
http://www.paul.sladen.org/toys/samsung-yh-925/
I'm getting errors and hoping someone could give me some hints, for I
have no python background.
|
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: 'ascii' codec can't decode byte 0xXX in position
0: ordinal not in range(128)
I spent two hours fixing it, and I hope it's done. The solution is one
| |
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 one line of that file
into a string variable 'tocline', as follows:
tocline = 'Ficha Datos de p\xe9rdida AND acci\xf3n'
import codecs
tocFile = codecs.open('mytoc.htm','wb',encoding='utf8',errors='replace')
tocline =...
|
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 an multi-bytes-char string,
how did it determine to seperate the string every 2bytes or 1byte?
My second question is: is there any one who has tested very long mbcs
|
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 = meta.encode('unicode-escape')
when given an 8-bit string, (in meta), the code fragment above
yields the error below.
'ascii' codec can't decode byte 0xe1 in position 13: ordinal not in range(128)
|
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 *b64, *bio ;
long i ;
char buffer ;
memset(buffer, 0, 512) ;
|
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 example:
answer_str = raw_input(' Enter answer ') Herr Üü
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |