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

accent and Request.Form

i have an html page that send datas from a form to an aspx page.

when, in aspx page, i take the value with Request.Form.Item("Nome") i
can't get the accents.

let's say, if i type the string "pietà", when i get it in the aspx
page i see "piet"

does anybody knows how can i fix this?

thanks
francesco

Mar 2 '06 #1
5 1869
Does it make a difference if you use HtmlDecode?

label1.text = Server.HtmlDecode(Request.Form.Item("Nome"))

Ken
Microsoft MVP [ASP.NET]
"franz" <ma****@libero.it> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
i have an html page that send datas from a form to an aspx page.

when, in aspx page, i take the value with Request.Form.Item("Nome") i
can't get the accents.

let's say, if i type the string "pietà", when i get it in the aspx
page i see "piet"

does anybody knows how can i fix this?

thanks
francesco
Mar 3 '06 #2
no, no difference at all!

):

Mar 3 '06 #3
Thus wrote Franz,
i have an html page that send datas from a form to an aspx page.

when, in aspx page, i take the value with Request.Form.Item("Nome") i
can't get the accents.

let's say, if i type the string "pietà", when i get it in the aspx
page i see "piet"

does anybody knows how can i fix this?


The client is using the wrong request encoding. Insert
<meta id="Meta" runat="server" http-equiv="content-type" content="text/html;
charset=UTF-8" />
in the <head /> of your HTML form.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Mar 3 '06 #4
thnaks for your help!
Joerg, i don't know why, but the code as you posted me does't look to
work.
To make it works i have to type this string.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

thanks
francesco

Mar 4 '06 #5
Thus wrote Franz,
thnaks for your help!
Joerg, i don't know why, but the code as you posted me does't look to
work.
To make it works i have to type this string.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


I know why... I accidentally grabbed a server-side HTML Meta control from
one of my samples. It should have been exactly the text you've posted.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Mar 4 '06 #6

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

Similar topics

2
by: JB | last post by:
Hi, I'm having a problem with accent in PHP/HTML. I have a value stored in a table. The value is : é è à ù When I look directly into table via phpmyadmin, the value seems to be stored...
114
by: muldoon | last post by:
Americans consider having a "British accent" a sign of sophistication and high intelligence. Many companies hire salespersons from Britain to represent their products,etc. Question: When the...
3
by: Matthias HALDIMANN | last post by:
My SQL Server 2000 does not use the accent insensitive collation setting (collation containing _AI) in full-text serches: While SELECT * FROM <table> WHERE <column> LIKE '%a%' returns 'Mäuse',...
3
by: Darren Jensen | last post by:
Hi, Does anyone have a function which replaces accent chars from a string with the non-accented equivalent? For example 'hôpital' should return 'hopital'. Thank you in advance.
3
by: Daedalus.OS | last post by:
Hi, I've been asked to transfert a database from a webhoster to another. I think the database is on a windows box but I'm not 100% shure. The webhoster says it provides combined hosting on...
0
by: ucasesoftware | last post by:
I send some sms in my Win app. but i have trouble with accent accènts = accAent for example when i receive my sms :( if i request the url directly in IE all accent are fine... so it's this...
1
by: Fabrice | last post by:
Hello, I have encountered a deep problem with accent and I don't understand why. I m preparing a multi-language website. French and English so far. With french, we have accents and ......
0
by: Fabrice | last post by:
Hello, (Alain) Tis is a part of my code to retrieve text from hastable in memory cache, by reading (befor) a resources file. Thanks for your help. /1/ The resources file * I have create a...
4
by: MC | last post by:
Is there a string function in .NET that will remove the accent marks from letters? I know that's a slightly vague request... and that I could implement it by table lookup (and will do so unless...
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
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: 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: 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$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.