in reply to Creating Open Office Doc with Hebrew

This might do it, untested, no experience with it, just going by the error–

use Encode; $doc->extendText($p, encode_utf8 $header);

The error seems to indicate the $doc expects raw bytes instead of characters.

Update. Tested now, I was right. Need both the above and the second one I missed–

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

Creates a doc with these two lines–

בס״ד
בס״ד

Replies are listed 'Best First'.
Re^2: Creating Open Office Doc with Hebrew
by sachss (Sexton) on Sep 19, 2016 at 00:46 UTC
    That did it. Thanks.