charset specification sometimes does not work
Brought to you by:
adamkennedy
First I specified non-default charset in
modiles/CVSmonitor.pm (in my case $CHARSET='cp866').
The "Meta" tag in generated page was fine, but in HTTP
header there was default 8859-1. This is hardcoded in
CGI.pm "init" method.
To specify non-default cp866 for http header I insert
a line
CGI::charset($parser->{charset});
into cvsmonitor.pl subroutine "page" just before a
line "my $Object = AppLib::Page->new()" and it works.
Logged In: NO
Version 0.63
I suggest fix this in this way:
on modules/AppLib/Page.pm line 165.
change to :
CGI::header( @params ,
-charset=>$CVSMonitor::CHARSET, # modified by Wang Xiaozhe @ Wed Nov 15 CST 2006
);
Thanks.