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

Request.Item skips non-english characters

Hi,
Anyone know how to tell request.item to return non-english characters. In my
example the scandiavian letters ÅÄÖåäö (AAOaao with circles and dots above)
gets skiped.
Here is the code in vb.net:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim enc As System.Text.Encoding
enc = System.Text.Encoding.GetEncoding("iso-8859-1")
Request.SaveAs("c:\htmlrequest.txt", True)
Label2.Text =
HttpUtility.UrlDecode("%2F1.+PAFs+Spelregler%2F2.+ Huvudprocess%2FSpelunderh%E5llning%2FDigitala+spel ",
enc)
Label3.Text = HttpUtility.UrlDecode(Request.Item("path"), enc)
End Sub

The problem is the sequence %E5 that should be 'a with circle' above.
Label2 gets the correct string but in Lable3 the Request.Item skips %E5 so
the 'a with circle' is removed from the text. I have tried with
Session.CodePage = 1252 with no luck.

What I'm trying to do is to pass a folder-path containing non-english
characters from an old asp-application to a new asp.net application.

c:\htmlrequest.txt=
_________
GET
/isodoc/test/uploadfile/uploadfile.aspx?work=ver&file=Internetspel.doc&pat h=%2F1.+PAFs+Spelregler%2F2.+Huvudprocess%2FSpelun derh%E5llning%2FDigitala+spel
HTTP/1.1
Connection: Keep-Alive
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*
Accept-Encoding: gzip, deflate
Accept-Language: sv-fi
Cookie: ASPSESSIONIDSATBQACB=JAFJAJMBFPCBCICPMAPIDEIO;
ASP.NET_SessionId=ls0tz3zttslmva45airwqonn
Host: appserver
Referer: http://appserver/isodoc/test/scripta...oc.asp?path=/1. PAFs
Spelregler/2. Huvudprocess/Spelunderhållning/Digitala
spel&file=Internetspel.doc
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.0.3705; .NET CLR 1.1.4322)
___________

/Johan
Nov 18 '05 #1
0 1139

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

Similar topics

6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
4
by: Gerhard Pretorius | last post by:
ON Win 2003 IIS6, Since yesterday, (12 Aug 2003) for some strange reason, (after installing WindowsServer2003-KB823980-x86-ENU.exe) I cannot pass the Request object to to VB COM DLL. I have...
8
by: Robert Mark Bram | last post by:
Hi All! I have the following code in an asp page whose language tag is: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> // Find request variables. var edition = Request.Form ("edition"); var...
2
by: Harag | last post by:
Hi All Using: JScript IIS 5 I have a problem in the following code: // The next 4 lines display exactly what was typed in the text boxes. out("<br>Request.Form="+...
3
by: David Garamond | last post by:
Am I correct to assume that SERIAL does not guarantee that a sequence won't skip (e.g. one successful INSERT gets 32 and the next might be 34)? Sometimes a business requirement is that a serial...
5
by: Edwin Knoppert | last post by:
I'm doing a simple test, about 100 lines of data of ~200 bytes each. I'm using WebRequest() and HttpWebResponse() calling a generic handler. What i pass to the webserver (tried local as not...
14
by: Drew | last post by:
I need to iterate through a submitted form, inserting data on each pass. In the past, I have always used form elements that were named with numbers at the end, like this, name1 relationship1...
4
by: TS | last post by:
In my production exceptions i get an email with all the form elements and their values to debug. the controls that have a blank value are not seen and it makes my debug job harder (was the...
4
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
2
by: bartdeliefde | last post by:
Hey, I run into the following problem: I have a map: map<string,*ofstream> FILEHANDLES map<string,ofstream*>::iterator FILEHANDLES_it; I fill the map in a loop with a certain number of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
Oralloy
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,...
0
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...

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.