Different content encoding by browser

S

Sara T.

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.
 
J

Joerg Jooss

Sara said:
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,
 
S

Sara T.

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 said:
Sara said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top