By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,602 Members | 1,473 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,602 IT Pros & Developers. It's quick & easy.

read national characters from the form

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.