473,480 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

national character i querystring - problem

Hi

My problem is like that:

I'm trying to pass values branza and jezyk in querysting:

http://localhost/euroadres/pokazbran...anza=transport
lotniczy&jezyk=1

Branza is type "string" and when I'm passing string value without national
characters it's working ok. When I'm trying to pass value with national
characters (multinational not only polish) it's not working properly.
I debugged it and it occured that "multinational" characters are ingnored or
substituted for another characters.
My codepage: 65001 (UTF-8 with signature)

Have you got any idea?

Best Regards

Darek T.
May 6 '06 #1
3 1981
You have to url-encode the value to put it in an url. Use the
Server.UrlEncode method.

Dariusz Tomon wrote:
Hi

My problem is like that:

I'm trying to pass values branza and jezyk in querysting:

http://localhost/euroadres/pokazbran...anza=transport
lotniczy&jezyk=1

Branza is type "string" and when I'm passing string value without national
characters it's working ok. When I'm trying to pass value with national
characters (multinational not only polish) it's not working properly.
I debugged it and it occured that "multinational" characters are ingnored or
substituted for another characters.
My codepage: 65001 (UTF-8 with signature)

Have you got any idea?

Best Regards

Darek T.

May 6 '06 #2

"Göran Andersson" <gu***@guffa.com> wrote in message
news:eh**************@TK2MSFTNGP05.phx.gbl...
You have to url-encode the value to put it in an url. Use the
Server.UrlEncode method.
It does not work or I did not understand.
I'm passing values by entering the string with "?" marks with values
assigned. Then I'm trying to retrieve value of "branza" and I tried like
this:
Server.UrlDecode(Request.QueryString["branza"]) and

Server.UrlEncode(Request.QueryString["branza"])

I cannot encode my entering string because it is www adres as it is - for
users to enter it just to browser and then my code underneath will generate
page depending on the values passed.

So the problem still exists :(

Regards

Darek T.


Dariusz Tomon wrote:
Hi

My problem is like that:

I'm trying to pass values branza and jezyk in querysting:

http://localhost/euroadres/pokazbran...anza=transport
lotniczy&jezyk=1

Branza is type "string" and when I'm passing string value without
national characters it's working ok. When I'm trying to pass value with
national characters (multinational not only polish) it's not working
properly.
I debugged it and it occured that "multinational" characters are ingnored
or substituted for another characters.
My codepage: 65001 (UTF-8 with signature)

Have you got any idea?

Best Regards

Darek T.

May 6 '06 #3
UrlEncode should be used when creating the URL.

If the URL is not correctly encoded in the request, there is nothing you
can do to correct it when it arrives at the server side.

Although it might be possible that the browser encodes the characters
correclty, but they are decoded incorrectly when the request arrives.
Check the RequestEncoding property in web.config.

Are you really expecting your users to type in the URL and modify the
querystring? Are they aware of how to write things in an URL, basic
things like that they have to encode spaces?
Dariusz Tomon wrote:
"Göran Andersson" <gu***@guffa.com> wrote in message
news:eh**************@TK2MSFTNGP05.phx.gbl...
You have to url-encode the value to put it in an url. Use the
Server.UrlEncode method.


It does not work or I did not understand.
I'm passing values by entering the string with "?" marks with values
assigned. Then I'm trying to retrieve value of "branza" and I tried like
this:
Server.UrlDecode(Request.QueryString["branza"]) and

Server.UrlEncode(Request.QueryString["branza"])

I cannot encode my entering string because it is www adres as it is - for
users to enter it just to browser and then my code underneath will generate
page depending on the values passed.

So the problem still exists :(

Regards

Darek T.

Dariusz Tomon wrote:
Hi

My problem is like that:

I'm trying to pass values branza and jezyk in querysting:

http://localhost/euroadres/pokazbran...anza=transport
lotniczy&jezyk=1

Branza is type "string" and when I'm passing string value without
national characters it's working ok. When I'm trying to pass value with
national characters (multinational not only polish) it's not working
properly.
I debugged it and it occured that "multinational" characters are ingnored
or substituted for another characters.
My codepage: 65001 (UTF-8 with signature)

Have you got any idea?

Best Regards

Darek T.


May 7 '06 #4

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

Similar topics

7
2552
by: Leif B. Kristensen | last post by:
I'm developing a routine that will parse user input. For simplicity, I'm converting the entire input string to upper case. One of the words that will have special meaning for the parser is the word...
9
1926
by: Fawke101 | last post by:
Hi there, I have a ASP/SQL 7 application that displays data from various SQL7 Views onto a ASP page. A column of this data is displayed in ASP as hyperlinks and the relevent data is put into...
1
6719
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
0
1659
by: marchab | last post by:
Hallo! I've got a problem with INSERT statment which includes any special (national) character. It ends with SQL0104 error. It's strange because isql utility executes the same statement without...
6
2500
by: Guadala Harry | last post by:
When passing the '#' character as part of a querstring value, the received Querystring value gets truncated just prior to the '#' character. Exmple: string s = "someColor=#0000FF"; On the...
0
1260
by: Eric Carr | last post by:
Hi, we have been using WMI from VB6 to automate configuration of new DNS zones on our win2000 servers, and are now trying to move the system to a vb.net application. We recently added some...
0
986
by: wolf2300 | last post by:
readline method and national charset problem hi how can i copy line from text file which contains polish characters. i use readline method from StreamReader class but it doesn't copy polish...
1
5033
by: adrian.besimi | last post by:
Hi, I got a serious problem regarding the Server.Execute and/or Server.Transfer. Here's the idea of my application: I have 1 web page named Default.aspx where I execute all my other pages.
5
2358
by: sniipe | last post by:
Hi, I have a problem with unicode string in Pylons templates(Mako). I will print first char from my string encoded in UTF-8 and urllib.quote(), for example string '£ukasz': ...
0
7046
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
7088
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
6741
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
6956
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
5342
agi2029
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,...
0
4485
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
2997
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
1300
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 ...
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.