use Encode; $doc->extendText($p, encode_utf8 $header); #### $p = $doc->appendParagraph(text => encode_utf8($header), style => "optionalParagraphStyle" );