Use UTF8 for database connection when connecting to MySQL

This commit is contained in:
Graham Knop 2008-03-07 17:45:19 +00:00
parent 4a93766bf9
commit d9d524a2fe
4 changed files with 18 additions and 3 deletions

View file

@ -104,7 +104,11 @@ sub get {
my $content = $data->[0];
return undef unless ($content);
# Storable doesn't like non-reference arguments, so we wrap it in a scalar ref.
return ${thaw($content)};
eval {
$content = thaw($content);
};
return undef unless $content;
return $$content;
}
#-------------------------------------------------------------------