Thanks Martin,
creating a web.confg file and a globalization entry in it with iso-8859-1
encoding did help, without doing any changes to ASP or ASPX files.
regards
Peter
"Martin Honnen" wrote:
[color=blue]
>
>
> Peter2 wrote:
>
>[color=green]
> > POST Montréal from ASP to ASPX => doesn't work (drops é character)
> > POST Montréal from HTML to ASPX => doesn't work[/color]
>
> ASP.NET has a setting for the request encoding in the web.config, see
> <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfGlobalizationSection.asp>
> If the 'é' gets lost then the encoding the browser uses the encode the
> characters is different from the encoding ASP.NET uses to decode
> incoming data. So you either need to change the encoding of the classic
> ASP and static HTML pages (to for instance UTF-8) as that way the
> browser then encodes the data with UTF-8 or you need to change the
> setting for ASP.NET to that encoding the data is sent with.
>
> Additionally there is an attribute accept-charset for HTML form
> elements, see
> <http://www.w3.org/TR/html4/interact/forms.html#adef-accept-charset>
> which browser like Mozilla or Opera supports as far as I remember so
> there doing e.g.
> <form method="POST"
> accept-charset="UTF-8"
> action="form.aspx">
> could help solve the problem (of course if the accept-charset matches
> the ASP.NET requestEncoding setting, the UTF-8 in my sample code is just
> an example).
>
> --
>
> Martin Honnen --- MVP XML
>
http://JavaScript.FAQTs.com/
>[/color]