/[Search-Estraier]/trunk/scripts/dbi-indexer.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/scripts/dbi-indexer.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 144 by dpavlin, Wed May 10 20:31:02 2006 UTC revision 145 by dpavlin, Wed May 10 21:09:05 2006 UTC
# Line 18  my $c = { Line 18  my $c = {
18          sql => qq{          sql => qq{
19                  select * from history_collection_view_cache                  select * from history_collection_view_cache
20          },          },
21            db_encoding => 'iso-8859-2',
22          debug => 0,          debug => 0,
23  };  };
24    
# Line 57  while (my $row = $sth->fetchrow_hashref( Line 58  while (my $row = $sth->fetchrow_hashref(
58    
59                  if ($val) {                  if ($val) {
60                          # change encoding?                          # change encoding?
61                          from_to($val, 'ISO-8859-2', 'UTF-8');                          from_to($val, ($c->{db_encoding} || 'ISO-8859-1'), 'UTF-8');
62    
63                          # add attributes (make column usable from attribute search)                          # add attributes (make column usable from attribute search)
64                          $doc->add_attr($col, $val);                          $doc->add_attr($col, $val);

Legend:
Removed from v.144  
changed lines
  Added in v.145

  ViewVC Help
Powered by ViewVC 1.1.26