TiVoCommunity.com
(c)opyright 1995-2005 All rights reserved
indexcheckTC
This area is a static history of posts in the TiVo Community Forum Archive.
This archive history was made for the simple indexing of search sites like Google.



Pages:1



specify charset in Content-Type header

(Click here to view the original thread with full colors/images)



Posted by: ccwf

Would it be possible to change the Content-Type of the generated HTML pages from
code:
Content-Type: text/html
to explicitly specify a charset of windows-1252?
code:
Content-Type: text/html; charset=windows-1252
Most of the time, browsers can figure out for themselves that the forum should be displayed using windows-1252, so this is a minor issue. Sometimes, however, they guess wrong when set to auto-detect the character set and non-ASCII characters are used in posts. I suspect this is also the reason we sometimes see garbled responses when quoted text with non-ASCII characters (like smart quotes and dashes) is posted by some browsers.

(I had an old post in the test area, gone now, showing that, without escaping, the forum software appears to handle all windows-1252 characters except for non-breaking spaces and nothing else.)



Posted by: David Bott

Hi...

You know what is funny about this, I can not find in the main templates where this actually comes in. I will need to do some more digging and see what I can find. What you suggested will not hurt that I am aware of...so..let me see what I can do.



Posted by: ccwf

Hmmm, searching the vBulletin site, I din't see any instances of the Content-Type header being directly set, either. Instead, all I saw were using <meta http-equiv="…"> examples:
code:
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />






vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2009 - Created by Stefan "Xenon" Kaeser Modified by Adam J. de Jaray