here's a small snippet, I have a database handle that has been created elsewhere (I'm embedding CGI::Wiki into another application for users to self-document how to use the software :)
my $store = CGI::Wiki::Store::MySQL->new( dbh => $dbh );
(assuming that I've also created the search and formatter and created a CGI::Wiki object called $wiki):
$wiki->write_node($node,$content,$checksum);
the error I'm getting is this: [Tue Aug 30 16:31:45 2005] [error] [client 192.168.1.106] Unknown encoding '' at /usr/lib/perl5/site_perl/5.8.5/CGI/Wiki/Store/Database.pm line 1126, referer: http://localhost/cgi-bin/document.dhtml
I took a look at Database.pm, line 1126 and it refers to $self->{_charset}... so I looked for where that's set, and it looks like it's being set in the new() method: $self->{_charset} = $args{charset} || "iso-8859-1";
but that's only being called if you're NOT passing a database handle..
I've tried calling new() like so: my $store = CGI::Wiki::Store::MySQL->new(dbh => $dbh, charset => 'iso-8859-1'); but, as expected, that didn't work (since the code didn't look like it was going to set it)
is this a bug, or am I doing something wrong somewhere / haven't looked into the code far enough?
Thanks!
-Jeremy