Mailing List Archive

charset `ANSI_X3.4-1968' not supported ?!?!
I have two servers? I swear they are identical !!! One is a test
server the other is an almost-production server. I am trying to setup
the almost-production server. So I did the install, dumped the
database from the test server and imported it in the almost-production
server.
Now it almost all works like I expected. Except that using the "Geshi
Syntax Highlight extension" from
http://www.wickle.com/wikis/index.php/Geshi_Syntax_Highlight_extension,
which looks great by the way, on the almost-production server I get
tons of warning like this:

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported,
assuming iso-8859-1 in /var/www/html/wiki/extensions/geshi/geshi.php
on line 1606

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported,
assuming iso-8859-1 in /var/www/html/wiki/extensions/geshi/geshi.php
on line 1439

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported,
assuming iso-8859-1 in /var/www/html/wiki/extensions/geshi/geshi.php
on line 1450


This thing works like a charm on my test server ?!?!
Any clues?!
PS: I am using Mandrake-Linux 10 on both machines.

--


______________________________________________________
Thanks.
/Sebast.

Visit us at http://limpingsquad.kicks-ass.org:8888/
______________________________________________________
Re: charset `ANSI_X3.4-1968' not supported ?!?! [ In reply to ]
On Dec 2, 2004, at 8:03 AM, Sebastien Routier wrote:
> Now it almost all works like I expected. Except that using the "Geshi
> Syntax Highlight extension" from
> http://www.wickle.com/wikis/index.php/Geshi_Syntax_Highlight_extension,
> which looks great by the way, on the almost-production server I get
> tons of warning like this:
>
> Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported,
> assuming iso-8859-1 in /var/www/html/wiki/extensions/geshi/geshi.php
> on line 1606

Well, that's kind of... odd. You might ask the geshi authors for help
on that one.

Also, try slipping a call to geshi's set_encoding method into the
extension. Change this bit:

$wgParser->setHook( $lang,create_function( '$text',
'$geshi = new GeSHi($text, ' . $lang . ', "extensions/geshi/geshi");
return $geshi->parse_code();'));

to

$wgParser->setHook( $lang,create_function( '$text',
'$geshi = new GeSHi($text, ' . $lang . ', "extensions/geshi/geshi");
global $wgInputEncoding;
$geshi->set_encoding($wgInputEncoding);
return $geshi->parse_code();'));

[.above code is totally untested; I have never used geshi or the geshi
extension and take no responsibility if it eats all your files]

> This thing works like a charm on my test server ?!?!
> Any clues?!
> PS: I am using Mandrake-Linux 10 on both machines.

Are they both running the same exact version of PHP? Are their PHP
installations configured exactly the same? Do you have error display
on? etc

-- brion vibber (brion @ pobox.com)