Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Creating Open Office Doc with Hebrew

by Your Mother (Archbishop)
on Sep 18, 2016 at 22:34 UTC ( [id://1172085]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1172085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found