iaw4 has asked for the wisdom of the Perl Monks concerning the following question:
I need to put an alpha (and some other greek characters) into a powerpoint presentation. Windows XP. Powerpoint is 2007. perl is Strawberry 5.12.3. almost everything was just installed fairly recently, so there should be few legacy issues.
someone else told me this same code produces chinese character, someone else reported it working---I am just exasperated. How do I reliably get some basic Greek characters into my PowerPoint document?
#!/usr/bin/perl -w use strict; use warnings FATAL => qw{ uninitialized }; ## should be in -w!!! use utf8; use Win32::PowerPoint; my $ppt = Win32::PowerPoint->new; $ppt->new_presentation(); my $slide = $ppt->new_slide(); ## $slide is not used $ppt->add_text("Please print \x{03B1}"); $ppt->save_presentation('alpha.ppt'); $ppt->close_presentation();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unicode characters in Win32::Powerpoint
by angiehope (Pilgrim) on Aug 27, 2011 at 18:30 UTC |