For Programmers: Free Programming Magazines  


Home > Archive > ASP > July 2004 > set dynamicly request.contentencoding









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author set dynamicly request.contentencoding
Allaigre David

2004-07-28, 3:55 pm

I'm trying to retreive some information from the querystring. The web site
is as default configure in "utf-8".

But on only one page i need to change dynamicly the contentEncoding to
retreive information send by an ActiveX component in iso-8859-1 format.

Iv' try to put this code in my page :
Request.ContentEncoding = System.Text.Encoding.GetEncoding("iso-8859-1")

But nothing happens.

Thanks to all who can help me

David.


Egbert Nierop \(MVP for IIS\)

2004-07-28, 3:55 pm

You also need
Response.CharSEt = "iso-8859-1"
Cheers

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

"Allaigre David" <news@allaigre.com> wrote in message
news:41075cca$0$29373$626a14ce@news.free.fr...
> I'm trying to retreive some information from the querystring. The web site
> is as default configure in "utf-8".
>
> But on only one page i need to change dynamicly the contentEncoding to
> retreive information send by an ActiveX component in iso-8859-1 format.
>
> Iv' try to put this code in my page :
> Request.ContentEncoding = System.Text.Encoding.GetEncoding("iso-8859-1")
>
> But nothing happens.
>
> Thanks to all who can help me
>
> David.
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com