foreach ($tvs as $tv => $value) {
$newdoc->setTVValue($tv, $value);
echo "sett $tv to $value<br>";
}set link to 123 set fragrance to asd set whom to fgh
This question has been answered by i_am_bars. See the first response.
It could be a character set issue.