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

Different content encoding by browser

How can I config to send the content-encoding to the different browser ?

I know it can config in Web.config (globalization section) like this:

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

But my problem is, this config will apply the whole pages of all browsers. I
need to filter content encoding by browser such as:

MSIE, content will be encoded to Windows-874
Opera, content will be encoded to UTF-8
..
..
..

If possible it could be done by not programmable, just like to put the
filter in browsercaps.

Please help.

Sara T.
Nov 18 '05 #1
2 1462
Sara T. wrote:
How can I config to send the content-encoding to the different
browser ?

I know it can config in Web.config (globalization section) like this:

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

[...]

You can use the property HttpResponse.ContentEncoding to override the
response encoding programmatically.

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #2
As I known, if I use HttpResponse.ContentEncoding, I have to include the
process in all of my pages. Does it have the way to set in the Web.config ?

Sara T.
"Joerg Jooss" <jo*********@gmx.net> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
Sara T. wrote:
How can I config to send the content-encoding to the different
browser ?

I know it can config in Web.config (globalization section) like this:

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

[...]

You can use the property HttpResponse.ContentEncoding to override the
response encoding programmatically.

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 18 '05 #3

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

Similar topics

1
by: lawrence | last post by:
I'm trying to read up on the rfc's that govern form inputs. Much of what I'm reading is stuff I didn't know before and some of it is alarming. This one left with me questions: ...
5
by: Scott Matthews | last post by:
I've recently come upon an odd Javascript (and/or browser) behavior, and after hunting around the Web I still can't seem to find an answer. Specifically, I have noticed that the Javascript...
40
by: Harlan Messinger | last post by:
Why would anyone ever have expected a content-type META tag to be effective at all? Is it because someone was misled by the happenstance the letters of the alphabet, the digits, and the characters...
4
by: Mark | last post by:
Hi... Just noticed something odd... In old ASP if you had query parameters that were invalid for their encoding (broken utf-8, say), ASP would give you back chars representing the 8-bit byte...
3
by: asanford | last post by:
I want to create an ASP.NET web application that receives a form POST message, inspects the data, and reroutes the request to one of many different servers. I wrote an IHttpModule which...
0
by: Ravi | last post by:
Hi, I am migrating an ASP application to ASP.Net 2.0. In the process I found that ASP.Net makes the content encoding default to Unicode(UTF-8). For the same HTML emitted by ASP the encoding is...
0
by: henk-jan ebbers | last post by:
Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: General discussion...
4
by: David Thielen | last post by:
Hi; This is for a website that is just html pages, no ASP.NET. I want the default page to be a different page if it's a mobile device. I can do this in ASP.NET by looking at the browser size and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.