473,398 Members | 2,335 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,398 software developers and data experts.

read national characters from the form

Hi there,
I receive parameters from html page via 'post' method in the form.

<form action="http://localhost/project1/Default.aspx" method=post
ID="Form1">
<input type=text name=UID value=UID id=ID>
<input type=text name=UserName value=userName id=UN>
<input type=submit value=Send ID="Submit1" NAME="Submit1">
</form>

When I want to read values from the Form in my aspx page by
Request.Form.Get("param");

the national characters missed. I tried to set CultureInfo without success.

Thread.CurrentThread.CurrentCulture = new CultureInfo("cs-CZ",false );

Does anyone has idea how to solve this problem?
Nov 18 '05 #1
2 1453
try to set RequestEncoding and ResponseEncoding
in web.config to national or UTF-8
UTF-8 works best

Thread CultureInfo most affects date, numbers and currency convertion
"VladimĂ*r Kolesnik" wrote:
Hi there,
I receive parameters from html page via 'post' method in the form.

<form action="http://localhost/project1/Default.aspx" method=post
ID="Form1">
<input type=text name=UID value=UID id=ID>
<input type=text name=UserName value=userName id=UN>
<input type=submit value=Send ID="Submit1" NAME="Submit1">
</form>

When I want to read values from the Form in my aspx page by
Request.Form.Get("param");

the national characters missed. I tried to set CultureInfo without success.

Thread.CurrentThread.CurrentCulture = new CultureInfo("cs-CZ",false );

Does anyone has idea how to solve this problem?

Nov 18 '05 #2
The problem is solved.
The htm page where the Form was placed had:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/>

So I had to put the same encoding to web.config's attribute RequestEncoding.
Thanks for advice.

"Ivan K." <Iv***@discussions.microsoft.com> píąe v diskusním příspěvku
news:5E**********************************@microsof t.com...
try to set RequestEncoding and ResponseEncoding
in web.config to national or UTF-8
UTF-8 works best

Thread CultureInfo most affects date, numbers and currency convertion
"Vladimír Kolesnik" wrote:
Hi there,
I receive parameters from html page via 'post' method in the form.

<form action="http://localhost/project1/Default.aspx" method=post
ID="Form1">
<input type=text name=UID value=UID id=ID>
<input type=text name=UserName value=userName id=UN>
<input type=submit value=Send ID="Submit1" NAME="Submit1">
</form>

When I want to read values from the Form in my aspx page by
Request.Form.Get("param");

the national characters missed. I tried to set CultureInfo without success.
Thread.CurrentThread.CurrentCulture = new CultureInfo("cs-CZ",false );

Does anyone has idea how to solve this problem?

Nov 18 '05 #3

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

Similar topics

2
by: Madhusudan Singh | last post by:
python-gpib provides Gpib.py (see end of post) for Linux. I am trying to use the method called read. I usually use it without arguments (the default length being 512). However, I am trying to...
0
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...
0
by: Peter Hemmingsen | last post by:
Hi, I've an asp.net (cs code behind) application where I want the user to be able to download a file with national (danish) characters. Ex: Response.Clear(); // clear the current output...
0
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
by: Aryeh Holzer | last post by:
Hi, I've been trying to use the weather webservice available from the National Weather Service (NWS), at http://www.nws.noaa.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML. wsdl without success. Here's...
0
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...
3
by: Dariusz Tomon | last post by:
Hi My problem is like that: I'm trying to pass values branza and jezyk in querysting: http://localhost/euroadres/pokazbranza.aspx?branza=transport lotniczy&jezyk=1 Branza is type...
1
by: pmclinn | last post by:
I have the xml feed belowfrom this link: http://www.weather.gov/alerts/ct.rss I for the life of me can not get this data to format in a html table using client side scripting. Any help would be...
11
by: panther | last post by:
Hi, I need to read part of an integer by another variable. As example, if user enter 761120921, then, i = 761120921 j = 76 k = 112 l = 0921 as that. can you explain how do i acheive this?
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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
isladogs
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...

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.