473,382 Members | 1,165 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,382 software developers and data experts.

Querystring and Double-Byte characters

I have an ASP.NET web page that accepts querystring parameters.
MyPage.aspx?DB=__??????????&ID=1
When I get into the page and look at Request.Querystring it shows as

"DB=__%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f&ID=1"

How can I get the correct Double-Byte character representation in the
QueryString?

Web.Config has both the request and response encoding as utf-8.

The site that is working w/o problems and I am trying to add in some simple
integration techniques. If they access the page from another of the sites
pages, the querystring is constructed as follows
string parms "parm1|parms2|parm3";

<Convert parms to a Base64 Array>

string navigateURL = "Mypage.aspx?parms=" + HttpUtility.URLEncode( parms )

In the page_Load I can unpack the quesrystring and get the correct values,
but if a user just tries to access the site with 'simple integration' then
they get _?????? for the parms

Any Help would be appreciated

Rod
Nov 18 '05 #1
2 2532
Try: Server.UrlDecode();

Should fix your problems as what is getting displayed is just the url
encoded version :)

- Mark

On Mon, 30 Aug 2004 12:35:49 -0600, RodBillett <No***@NoWhere.Com> wrote:
I have an ASP.NET web page that accepts querystring parameters.
MyPage.aspx?DB=__??????????&ID=1
When I get into the page and look at Request.Querystring it shows as

"DB=__%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f&ID=1"

How can I get the correct Double-Byte character representation in the
QueryString?

Web.Config has both the request and response encoding as utf-8.

The site that is working w/o problems and I am trying to add in some
simple
integration techniques. If they access the page from another of the
sites
pages, the querystring is constructed as follows
string parms "parm1|parms2|parm3";

<Convert parms to a Base64 Array>

string navigateURL = "Mypage.aspx?parms=" + HttpUtility.URLEncode( parms
)

In the page_Load I can unpack the quesrystring and get the correct
values,
but if a user just tries to access the site with 'simple integration'
then
they get _?????? for the parms

Any Help would be appreciated

Rod


--
Mark Harris
Head Developer
GameHost CP
Nov 18 '05 #2
RodBillett wrote:
I have an ASP.NET web page that accepts querystring parameters.
MyPage.aspx?DB=__??????????&ID=1
When I get into the page and look at Request.Querystring it shows as

"DB=__%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f&ID=1"

How can I get the correct Double-Byte character representation in the
QueryString?
Web.Config has both the request and response encoding as utf-8.
Since UTF-8 is not a double byte character encoding (it uses one or more
bytes): never ;-) %3f% is the question mark, the encoded values are correct.
It must break before that.
The site that is working w/o problems and I am trying to add in some
simple integration techniques. If they access the page from another
of the sites pages, the querystring is constructed as follows
string parms "parm1|parms2|parm3";

<Convert parms to a Base64 Array>

string navigateURL = "Mypage.aspx?parms=" + HttpUtility.URLEncode(
parms )

In the page_Load I can unpack the quesrystring and get the correct
values, but if a user just tries to access the site with 'simple
integration' then they get _?????? for the parms


How does this "integration" actually work? Do the users click on some
hyperlink in your web app, or in another web app?

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #3

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

Similar topics

2
by: Mikael | last post by:
Hi All! I have a problem here and i can't see what it is... My parameters (value) are shopped off. exampe "Hello world" will end up like "hello" How should i adjust the syntax to get a whole...
2
by: Davíð Þórisson | last post by:
hi in my old Asp pages I used Jscript as below that is a single .asp page would contain various subcodes. Is it the same in Asp.net? switch (Request.QueryString("handler").Item) { case "load":...
2
by: u_heet | last post by:
What I'm trying to do is when a hyperlink is clicked pass a value that looks like \\Blah\blah\Blah to another .aspx page via a querystring. But what the other page receives is \BlahblahBlah. I...
12
by: Alex | last post by:
I have a question about determining if one QueryString keys exists. The idea is, if this key exists, than its presence is enough to indicate that its value is true. For example ... ...
2
by: Adam J Knight | last post by:
Hi all, I am having trouble converting query string values to int like so: intValue = (int) Request.QueryString; I keep getting the error, cannot convert string to int... How can i do...
6
by: Helter Skelter | last post by:
hi, i want to have a querystring in a webpage. i dont mind what it does (i just want to experiment with it). how do i get the asp.net page to do something when i type in a querystring? if you...
5
by: Me | last post by:
I was wondering if after parsing Querystring, I could initialize it. Is it possible? Thank you, -Me
3
by: Rob | last post by:
Hi all, I've encrypted an entire querystring, thus the keys and values, at the moment I do only have one key and one value in it, so I could write something specific for that key, but I know as...
5
by: coldstar | last post by:
In an ASP Querystring, how do I include the double quotes in the code below at "1.0" part as text in my string? I have tried ""1.0"" and almost everything else but can't get it to work. I need...
3
by: pingsheng | last post by:
Dear all, I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.