my $sth = $dbh->prepare("update userinfo set description=? where uid=$uid"); $sth->execute(encode('UTF-8',$userdata->[$i]->{description})) || die $sth->errstr;