W3C home > Mailing lists > Public > www-validator@w3.org > May 2002

FW: Error message: Unknown character set

From: <Eric.Lewis@swissinfo.ch>
Date: Tue, 21 May 2002 11:53:10 +0200
Message-ID: <513F1D9DFA0CD311BC5B0008C773DC5F0217D908@moscow.sri.srg-ssr.ch>
To: www-validator@w3.org
Did anyone install the Validator on a Solaris system?

>>I'm trying to get the HTML validator to work,

>Adding the magic words "in a local installation", or somesuch, at this
>point would probably have been a good idea so we have a hope in ... of
>grokking what y'all are talking about. :-)

Yup... sorry about that!

>>but the same document I'm validating works fine on
>>http://validator.w3.org, but gives me the following error message on
>>my server: [...]
>>  The error was "Unsupported conversion: Invalid argument at
>>  /data/ch/sri/yagi/cgi-bin/html_validator/check.pl line 448. ".
>>Does anyone have any idea? The installation instructions are... ummm....

>Yeah, we know the instructions suck. Local installability of the Validator
>in general sucks. Hopefully it'll get fixed some time this milennium, but
>don't hold your breath...

It just surprises me, since the rest of the W3 site is so well organized.
How many people actually installed it? They must have run into some problems
as well, I think.

>What seems to be happeneing here is that the CGI script can't find one of
>it's configuration files. In this case, the file that holds the character
>encoding mapping tables; charset.cfg.

>If you're a steady hand at Perl you can probably figure out how to fix it
>from that information. Otherwise you need to send me the revision number of
>the "check" CGI script (it's up near the top, along with a date and some
>stuff, inside a "$Id: check,v blah blah $") and the location of
>all the "*.cfg" files and I'll either make your a custom version or give
>you instructions for how to fix it.

The revision is # $Id: check,v 1.183 2001/09/14 04:13:13 gerald Exp $

I do know Perl, and with your information I ran the script through the
69:     my $html_path = $base_path . 'document/html_validator/';
  DB<2> p $base_path
(skipped some lines)
75:     my $chst_db   = $html_path . 'config/charset.cfg';
76:     my $sgmlstuff = $html_path . 'sgml-lib';
  DB<3> p $chst_db
(the file really exists)
(skipped some lines)
117:    $charsets    = &read_cfg($chst_db); # charset -> iconv parameter
121:    $SIG{TERM} = \&erase_stuff;
  DB<4> p $charsets
  DB<6> p keys %$charsets

So, since I get the hash's data, the $chst_db was found - it must be
something else... 

>Oh, and if you're working from CVS you need to be carefull which branch you
>check out. The bleeding edge is totally horked ATM and will only run on my
>specific development box and pretty much nowhere else.

Well, what is the URL of the version you would recommend?

Received on Tuesday, 21 May 2002 05:54:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:27 UTC